Hi Daan, Can you send an example so that we can reproduce it? In the generated descriptors is there a FieldDescriptor for your optional date attribute?
Arnaud > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of daan > Sent: Friday, October 04, 2002 8:55 AM > To: [EMAIL PROTECTED] > Subject: [castor-dev] optional date attribute throws null pointer > exception > > 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. > > thanks for any flame you have for me;-} > > > > :wq! > > Daan Hoogland Unix consultants v v > [EMAIL PROTECTED] OO developers \ / > ### ## ## # >---X---< > http://snow.nl # # # # # # # # / \ > Snow B.V. ## # # # # # # # ^ ^ > Tel. (+31)30-6051501 # # # # # # # # > Fax. (+31)30-6037445 ### # # ## ## ## > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
