Indeed. Thx for highlighting. I will correct (but not release until there's more to announce!)
Brian On Mon, June 25, 2007 09:39, Gandon, Sébastien wrote: > The following configuration throws an NPE when foo does not exists. > > <xmltask destbuffer="foo" report="true"> > </xmltask> > > I know this is a bab usage of the xmltask but an NPE should never be > thrown, this is a lack of robustness. > Here is the stask traces. > Cheers. > > SeB. > > test xml task: > [xmltask] java.lang.NullPointerException > [xmltask] at > com.oopsconsultancy.xmltask.BufferStore.set(BufferStore.java:174) > [xmltask] at > com.oopsconsultancy.xmltask.ant.XmlTask.processDoc(XmlTask.java:715) > [xmltask] at > com.oopsconsultancy.xmltask.ant.XmlTask.execute(XmlTask.java:674) > [xmltask] at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) > [xmltask] at org.apache.tools.ant.Task.perform(Task.java:364) > [xmltask] at org.apache.tools.ant.Target.execute(Target.java:341) > [xmltask] at org.apache.tools.ant.Target.performTasks(Target.java:369) > [xmltask] at > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) > [xmltask] at > org.apache.tools.ant.Project.executeTarget(Project.java:1185) > [xmltask] at > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) > [xmltask] at > org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) > [xmltask] at > org.apache.tools.ant.Project.executeTargets(Project.java:1068) > [xmltask] at > org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423) > [xmltask] at > org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137) > *********************************************************************************** > This e-mail is confidential, the property of NDS Ltd and intended for the > addressee only. Any dissemination, copying or distribution of this > message or any attachments by anyone other than the intended recipient is > strictly prohibited. If you have received this message in error, please > immediately notify the [EMAIL PROTECTED] and destroy the original > message. Messages sent to and from NDS may be monitored. NDS cannot > guarantee any message delivery method is secure or error-free. > Information could be intercepted, corrupted, lost, destroyed, arrive late > or incomplete, or contain viruses. We do not accept responsibility for > any errors or omissions in this message and/or attachment that arise as a > result of transmission. You should carry out your own virus checks before > opening any attachment. Any views or opinions presented are solely those > of the author and do not necessarily represent those of NDS. > > To protect the environment please do not print this e-mail unless > necessary. > *********************************************************************************** > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Xmltask-users mailing list > Xmltask-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xmltask-users > -- Brian Agnew http://www.oopsconsultancy.com OOPS Consultancy Ltd Tel: +44 (0)7720 397526 Fax: +44 (0)20 8682 0012 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Xmltask-users mailing list Xmltask-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xmltask-users