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 - NPE in Add role Reference for Servlet/web Service
Summary: NPE in Add role Reference for Servlet/web Service
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: DD Editor (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2006-07-17 15:18 UTC by Dan Kolar
Modified: 2006-07-26 10:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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