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.

Bug 45391 - [freeform] NPE from WebModules.readAuxData when changing mapped target
Summary: [freeform] NPE from WebModules.readAuxData when changing mapped target
Status: CLOSED DUPLICATE of bug 45649
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks: 42682
  Show dependency tree
 
Reported: 2004-06-22 19:31 UTC by Lukas Hasik
Modified: 2006-03-24 10:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE - org.netbeans.spi.project.support.ant.PropertyUtils.subst(PropertyUtils.java:339) (3.29 KB, text/plain)
2004-06-22 19:33 UTC, Lukas Hasik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2004-06-22 19:31:54 UTC
[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
Comment 1 Lukas Hasik 2004-06-22 19:33:07 UTC
Created attachment 15922 [details]
NPE - org.netbeans.spi.project.support.ant.PropertyUtils.subst(PropertyUtils.java:339)
Comment 2 Jesse Glick 2004-06-22 20:02:09 UTC
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.
Comment 3 Jesse Glick 2004-08-10 03:29:40 UTC
Status?
Comment 4 Pavel Buzek 2004-10-06 00:37:13 UTC
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 ***
Comment 5 Lukas Hasik 2004-10-06 09:44:03 UTC
v