You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by st...@javelinsoftware.com on 2001/09/20 20:48:37 UTC
Re: ActionMessages throwing NullPointer and message is in
properties??
First idea...
ensure that neither messages nor aTimesheetDO is null
On Thu, 20 September 2001, Matt Raible wrote:
>
> I am getting a NullPointerException on the following code:
>
> messages.add(new ActionMessage("timesheetManage.reset.success",
> aTimesheetDO.getEmployeeName()));
>
> And in my ApplicationResources.properties file, I have the following entry:
>
> timesheetManage.reset.success=Timesheet for \"{0}\" re-generated successfully
> from holidays and work profile (if applicable).
>
> Any ideas?
>
> Thanks,
>
> Matt
>
> __________________________________________________
> Terrorist Attacks on U.S. - How can you help?
> Donate cash, emergency relief information
> http://dailynews.yahoo.com/fc/US/Emergency_Information/
--
Steven Valin
steven.valin@javelinsoftware.com
Re: ActionMessages throwing NullPointer and message is in properties??
Posted by Matt Raible <ma...@yahoo.com>.
I was setting messages to null in previous code - thanks for the tip!
Matt
--- steven.valin@javelinsoftware.com wrote:
> First idea...
> ensure that neither messages nor aTimesheetDO is null
>
> On Thu, 20 September 2001, Matt Raible wrote:
>
> >
> > I am getting a NullPointerException on the following code:
> >
> > messages.add(new ActionMessage("timesheetManage.reset.success",
> > aTimesheetDO.getEmployeeName()));
> >
> > And in my ApplicationResources.properties file, I have the following entry:
> >
> > timesheetManage.reset.success=Timesheet for \"{0}\" re-generated
> successfully
> > from holidays and work profile (if applicable).
> >
> > Any ideas?
> >
> > Thanks,
> >
> > Matt
> >
> > __________________________________________________
> > Terrorist Attacks on U.S. - How can you help?
> > Donate cash, emergency relief information
> > http://dailynews.yahoo.com/fc/US/Emergency_Information/
>
> --
> Steven Valin
> steven.valin@javelinsoftware.com
__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/