This one time, at band camp, Bygrave, Graham BGI UK said:

BGBU>I'm getting a null pointer in a call to OQLQueryImpl.bind and had a sneaky
BGBU>peek at the code.
BGBU>
BGBU>http://virtuals.intalio.com/cgi-bin/cvsweb.cgi/castor/src/main/org/exolab/ca
BGBU>stor/jdo/engine/OQLQueryImpl.java?rev=1.73&content-type=text/x-cvsweb-markup
BGBU>&cvsroot=castor
BGBU>
BGBU>Right at the top of the method bind, I noticed the following snippet:
BGBU>
BGBU>try {
BGBU>....
BGBU>Class valueClass = value.getClass();
BGBU>....
BGBU>if( value != null ) {
BGBU>....
BGBU>
BGBU>If value can be null, then shouldn't the getClass on value be within this
BGBU>block, rather than outside where it can throw null pointer exceptions (like
BGBU>the one I'm getting for instance)?
BGBU>
BGBU>Could be wrong though, in which case under what circumstances would you want
BGBU>null values to cause the exception?

Graham,

Right you are! Thanks for pointing that out. I've just checked in a fix for
this. Check out the latest from CVS for the fix. 

Bruce
-- 
perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to