This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[200406211800], jdk1.4.2_04 -I created web project from existing sources -after a while I wanted change some mapping of actions to ant targets - in Project Properties select 'Build and Run' and try change ant action (e.g. 'Run Project') NPE appears java.lang.NullPointerException at org.netbeans.spi.project.support.ant.PropertyUtils.subst(PropertyUtils.java:339) at org.netbeans.spi.project.support.ant.PropertyUtils.access$100(PropertyUtils.java:55) at org.netbeans.spi.project.support.ant.PropertyUtils$SequentialPropertyEvaluator.evaluate(PropertyUtils.java:671) at org.netbeans.modules.ant.freeform.FreeformProject$PropertyEvaluatorProxy.evaluate(FreeformProject.java:301) at org.netbeans.modules.ant.freeform.WebModules.readAuxData(WebModules.java:112) reassign if it's webmodule issue, thanks
Created attachment 15922 [details] NPE - org.netbeans.spi.project.support.ant.PropertyUtils.subst(PropertyUtils.java:339)
Pavel I see String contextPath = contextPathEl == null ? null : project.evaluator ().evaluate (Util.findText (contextPathEl)); Now I am not sure if <context-path> can be empty or not. Note that <context-path></context-path> counts as empty, I think, since there are no nested text nodes. If yes, you need to check for null in findText here. If no, someone is apparently writing it as empty, so you need to find out who that is and fix it.
Status?
forgot to mark this fixed when I fixed the duplicate bug Revision : 1.6 Date : 2004/6/30 15:18:48 Author : 'pbuzek' State : 'Exp' Lines : +2 -1 Description : 45649 check for empty context-path tag *** This issue has been marked as a duplicate of 45649 ***
v