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 131828 - NullPointerException at org.netbeans.modules.websvc.saas.model.Saas.getTopLevelGroup
Summary: NullPointerException at org.netbeans.modules.websvc.saas.model.Saas.getTopLev...
Status: CLOSED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Manager (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Peter Liu
URL: http://statistics.netbeans.org/except...
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2008-04-02 14:06 UTC by Jaroslav Pospisil
Modified: 2008-04-08 17:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 42851


Attachments
stacktrace (1.04 KB, text/plain)
2008-04-02 14:06 UTC, Jaroslav Pospisil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Pospisil 2008-04-02 14:06:36 UTC
Build: NetBeans IDE Dev (Build 200803311426)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b12
OS: Windows Vista, 6.0, x86

User Comments: 
I added new web service under Web Services in Runtime tab (I tried both URL and local file) and then I dnd its operation into java class. NPE was thrown.
Comment 1 Jaroslav Pospisil 2008-04-02 14:06:41 UTC
Created attachment 59545 [details]
stacktrace
Comment 2 Jaroslav Pospisil 2008-04-02 14:11:59 UTC
Reproducible also in servlet,JSP page or session bean. I used tjis URL:
http://www.esynaps.com/WebServices/SearchWS.asmx?WSDL
Comment 3 Jaroslav Pospisil 2008-04-07 15:10:19 UTC
Raising priority to P1, since this is nasty bug and action doesn't work at all now. I got NPE and nothing happens
everytime I try to dnd operation of any my added web services from Manager. 
Comment 4 Peter Liu 2008-04-07 19:19:41 UTC
I'll take care of this.

Comment 5 Peter Liu 2008-04-07 21:33:30 UTC
The code where the NPE occurs does not check to make sure topGroup is null before
calling getParent() in the condition clause of the while loop.  Furthermore, if the while loop terminates
with the topGroup equals null, we need to set the topGroup to the root group to prevent futher
NPE downstream.

Fix checked into trunk.
http://hg.netbeans.org/main/rev/b9f5e8b4d3f4
Comment 6 Peter Liu 2008-04-07 21:48:17 UTC
Fix transplanted into release61 branch.

http://hg.netbeans.org/release61/rev/4610312b885b

Comment 7 Lukas Jungmann 2008-04-08 10:54:01 UTC
v. in trunk as well as in 6.1