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.
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.
Created attachment 59545 [details] stacktrace
Reproducible also in servlet,JSP page or session bean. I used tjis URL: http://www.esynaps.com/WebServices/SearchWS.asmx?WSDL
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.
I'll take care of this.
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
Fix transplanted into release61 branch. http://hg.netbeans.org/release61/rev/4610312b885b
v. in trunk as well as in 6.1