<div dir="ltr"><br clear="all"><div>Greetings,</div><div><br></div><div>I believe I&#39;ve come across to a Bug in mondrian 3.6.</div><div>If I try to crossjoin a calculated member with some Set in slicer it throws NPE.</div>
<div><br></div><div>Here is the stacktrace for mondrian 3.6.7</div><div><br></div><div><div>Caused by: java.lang.NullPointerException</div><div>        at mondrian.olap.fun.AggregateFunDef$AggregateCalc.dimensionJoinsToBaseCube(AggregateFunDef.java:518)</div>
<div>        at mondrian.olap.fun.AggregateFunDef$AggregateCalc.canOptimize(AggregateFunDef.java:494)</div><div>        at mondrian.olap.fun.AggregateFunDef$AggregateCalc.optimizeMemberSet(AggregateFunDef.java:451)</div><div>
        at mondrian.olap.fun.AggregateFunDef$AggregateCalc.optimizeChildren(AggregateFunDef.java:356)</div><div>        at mondrian.olap.fun.AggregateFunDef$AggregateCalc.optimizeTupleList(AggregateFunDef.java:210)</div><div>
        at mondrian.rolap.RolapResult.&lt;init&gt;(RolapResult.java:361)</div><div>        at mondrian.rolap.RolapConnection.executeInternal(RolapConnection.java:671)</div></div><div><br></div><div>The following mdx exploits the issue</div>
<div><br></div><div><div>WITH</div><div>MEMBER [Measures].[Dummy] AS &#39;1&#39;</div><div>SELECT</div><div>FROM [Sales]</div><div>WHERE CrossJoin({[Measures].[Dummy]}, {[Gender].[Gender].Members})</div></div><div><br></div>
<div>-- </div><div>Tiago</div>
</div>