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.
NB 6.0 200708280000 & GF v2 b58c & jdk1.6u1 GF V2 node is started, create a new web project (no framework), access sun-web.xml tab "Servlets" Click on button "Add Servlet" with name servlet1, Click on button "Add Servlet" to add a second servlet but remove the proposed string in Name ==>> can see two entries servlet1 and unknown. Click on button "Add Servlet" to a third servlet ==> NPE will attache the NPE stack
Created attachment 47714 [details] exception stack .txt file
this happens for all Name string that should not be null, not only for Servlet tab. got same thing in "web services" tab when "Web service description name" is set to null. When the "unknown" is removed (select and click button Remove) the next entry added when hit the NPE is shown up.
Good find. Non-null safe compare was being used in DDBinding.compareTo() Fixed. http://serverplugins.netbeans.org/source/browse/serverplugins/sun/sunddui/src/org/netbeans/modules/j2ee/sun/ddloaders/multiview/common/DDBinding.java?r1=1.7&r2=1.8
ok verified on solaris-sparc with rc1 daily