On Fri, 2002-10-04 at 08:55, daan wrote:
> H,
> 
> I have an optional date attribute that is not in my xml. I unmarshal
> it in generated code. Now i ask for the date and it returns something
> not null. 

> Calling a method on whatever is return throw a
> NullPointerException. The method called does not appear in the stack
> trace. If I print the object itself without calling the toString
> method it prints "null". I'm puzzled and I couldn't find anything in
> the bugzilla.

Hello Daan,

How do you know that the something that is returned is not null? 

Your second paragraph exactly describes the behaviour that would occur
if indeed a null value is returned. I don't see how calling a method on
a non-null object can result in a NullPointerException if the method
does not show up in the stack trace.

Greetings,
  Erwin

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

Reply via email to