PDA

View Full Version : RE: [Mondrian] Cube getTimeDimension use when Cube has no Timedimension



Julian Hyde
06-07-2007, 10:30 AM
Richard,

Please log a bug.

Julian

> -----Original Message-----
> From: mondrian-bounces (AT) pentaho (DOT) org
> [mailto:mondrian-bounces (AT) pentaho (DOT) org] On Behalf Of Richard Emberson
> Sent: Wednesday, June 06, 2007 12:43 PM
> To: 'Mondrian developer mailing list'
> Subject: [Mondrian] Cube getTimeDimension use when Cube has
> no Time dimension
>
>
> The Cube interface has the method getTimeDimension()
> defined. A common usage pattern appearing in
> LastPeriodsFunDef, PeriodsToDateFunDef, XtdFunDef,
> OpeningClosingPeriodFunDef and ParallelPeriodFunDef
> is:
>
> validator.getQuery().getCube().getTimeDimension().getHierarchy().
>
>
> If the Cube does not define a Time dimension, then all of these
> result in a NullPointerException rather than some
> Mondrian usage exception.
>
> Granted, the above functions only make sense if a Time
> dimension is defined for the Cube, but there is no check.
>
> Richard
>
> --
> Quis custodiet ipsos custodes:
> This email message is for the sole use of the intended
> recipient(s) and
> may contain confidential information. Any unauthorized review, use,
> disclosure or distribution is prohibited. If you are not the intended
> recipient, please contact the sender by reply email and destroy all
> copies of the original message.
> _______________________________________________
> Mondrian mailing list
> Mondrian (AT) pentaho (DOT) org
> http://lists.pentaho.org/mailman/listinfo/mondrian
>

_______________________________________________
Mondrian mailing list
Mondrian (AT) pentaho (DOT) org
http://lists.pentaho.org/mailman/listinfo/mondrian