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 80423

Summary: NPE in Add role Reference for Servlet/web Service
Product: javaee Reporter: Dan Kolar <dkolar>
Component: DD EditorAssignee: Erno Mononen <emononen>
Status: VERIFIED FIXED    
Severity: blocker CC: pjiricka
Priority: P3 Keywords: SIMPLEFIX
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Dan Kolar 2006-07-17 15:18:18 UTC
build 200607170300  jdk1.5.07

1) Create Web application on Tomcat
2) Add Servlet to web.xml
3) Click "Add Role Reference"
4) Write first char in "Role Ref Name"

NPE is thrown
Comment 1 Petr Jiricka 2006-07-21 16:12:54 UTC
Hi Dan, can you please attache the exception stack trace? Thanks.
Comment 2 Erno Mononen 2006-07-24 08:43:37 UTC
I was able to reproduce this, relevant part of the stack trace: 

java.lang.NullPointerException
	at 
org.netbeans.modules.j2ee.ddloaders.web.multiview.SecurityRoleRefTablePanel$TableActionListener$1.validate(SecurityRoleRefTablePanel.java:112)
	at 
org.netbeans.modules.xml.multiview.ui.EditDialog.checkValues(EditDialog.java:64)
	at 
org.netbeans.modules.xml.multiview.ui.EditDialog$DocListener.insertUpdate(EditDialog.java:115)
Comment 3 Erno Mononen 2006-07-24 08:59:11 UTC
Fixed in release55 branch.

Checking in SecurityRoleRefTablePanel.java;
/cvs/j2ee/ddloaders/src/org/netbeans/modules/j2ee/ddloaders/web/multiview/Attic/
SecurityRoleRefTablePanel.java,v  <--  SecurityRoleRefTablePanel.java
new revision: 1.1.4.4; previous revision: 1.1.4.3
done
Comment 4 Dan Kolar 2006-07-26 10:55:54 UTC
v. build 200607260000