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 53413 - NPE from org.netbeans.modules.j2ee.deployment.config.DDNodeBean
Summary: NPE from org.netbeans.modules.j2ee.deployment.config.DDNodeBean
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Nam Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-14 15:30 UTC by Marian Mirilovic
Modified: 2006-03-24 13:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NullPointerException stack trace (3.28 KB, text/plain)
2005-01-14 15:32 UTC, Marian Mirilovic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2005-01-14 15:30:42 UTC
NB4.1 (200501131900), JDK1.5.0 

NPE rises when I click on Select File in Browse
FIle dialog invoked from web.xml | Welcome Files |
Browse ....

see attachment
Comment 1 Marian Mirilovic 2005-01-14 15:32:12 UTC
Created attachment 19699 [details]
NullPointerException stack  trace
Comment 2 Nam Nguyen 2005-01-28 02:05:54 UTC
To reproduce this, you have to remove the list of pages then do
Browser... 
The NPE means j2eeserver get notified on a ddbean event given old
value BaseBean's without parent.  Generally, event base beans except
root should be part of a graph.  In this case probably the event was
generated even the removed values (which are just default) have not
been known to the ddbean cache yet.  Just protect j2eeserver from such
bad event.  Fix checkin:

Checking in
src/org/netbeans/modules/j2ee/deployment/config/ModuleDeploymentSupport.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/ModuleDeploymentSupport.java,v
 <--  ModuleDeploymentSupport.java
new revision: 1.22; previous revision: 1.21
Comment 3 Nam Nguyen 2005-01-28 02:06:19 UTC
Fixed
Comment 4 Marian Mirilovic 2005-02-07 21:25:01 UTC
verified in NB 4.1 (200502071900)