<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=125524720-26062007><FONT face=Verdana 
color=#000080 size=2>I fixed it.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=125524720-26062007><FONT face=Verdana 
color=#000080 size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=125524720-26062007><FONT face=Verdana 
color=#000080 size=2>The whole expression yields a member, I think [Store].[All 
stores], which is then evaluated to a scalar. What that scalar evaluates to 
depends on the context of all dimensions except [Store]. Because of the Item() 
function, the dimensionality of that member was null, and the dependency 
checking was converting 'depends on unknown dimension' into 'does not depend on 
any dimension'. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=125524720-26062007><FONT face=Verdana 
color=#000080 size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=125524720-26062007><FONT face=Verdana 
color=#000080 size=2>Julian</FONT></SPAN></DIV><BR>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> mondrian-bounces@pentaho.org 
  [mailto:mondrian-bounces@pentaho.org] <B>On Behalf Of </B>Thiyagu 
  Palanisamy<BR><B>Sent:</B> Tuesday, June 26, 2007 2:22 AM<BR><B>To:</B> 
  julianhyde@speakeasy.net<BR><B>Cc:</B> mondrian@pentaho.org<BR><B>Subject:</B> 
  [Mondrian] testItemNull() test failure<BR></FONT><BR></DIV>
  <DIV></DIV><BR><TT><FONT size=2>Hi Julian,</FONT></TT> <BR><BR><TT><FONT 
  size=2>&nbsp;We tried to address the testItemNull() test failure. We 
  investigated on what is going wrong with dependency check for 
  Filter([Store].Members, (0.0 = 0.0)).Item(0.0).Item(0.0). It finally reaches 
  '0.0' to evaluate if a dimension is depend on it. Since it is constant calc it 
  returns that is it not dependent on any dimension. &nbsp;</FONT></TT> 
  <BR><BR><TT><FONT size=2>&nbsp;Our test is to validate that we are not getting 
  null pointer exception any more. Since we are not that familiar with 
  dependency checks we are inclined to opt for a simple change in the test like 
  "</FONT></TT><TT><FONT color=red size=2>0 *</FONT></TT><TT><FONT size=2> 
  (Filter([Store].members, 0 = 0).Item(0).Item(0), Filter([Store].members, 0 = 
  0).Item(0).Item(0))" which will always pass the dependency check and also 
  ensures our null pointer fix is in place.</FONT></TT> <BR><BR><TT><FONT 
  size=2>&nbsp;Please let us know how should we take this forward.</FONT></TT> 
  <BR><BR><TT><FONT size=2>Thanks,</FONT></TT> <BR><TT><FONT size=2>Thiyagu 
  &amp; Shishir</FONT></TT> <BR><TT><FONT size=2>&nbsp; 
  </FONT></TT><BR><TT><FONT size=2>&nbsp;</FONT></TT> 
<BR></BLOCKQUOTE></BODY></HTML>