I take it you mean the has<fieldname> method. I'd rather work independent of wether descriptors are available, as much as possible. That means at generation time. The case of an optional string works fine by the way, I can just check for null, maybe it is a date issue.
I'll try to isolate the problem later. > -----Original Message----- > From: Arnaud Blandin [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 04, 2002 11:08 AM > To: [EMAIL PROTECTED] > Subject: Re: [castor-dev] optional date attribute throws null pointer > exception > > > 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 > > ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
