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 72299

Summary: NPE from CC
Product: javaee Reporter: Lukas Jungmann <jungi>
Component: Web FreeformAssignee: Martin Adamek <madamek>
Status: VERIFIED FIXED    
Severity: blocker Keywords: REGRESSION
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
URL: http://www-128.ibm.com/developerworks/webservices/library/ws-wsajax/
Issue Type: DEFECT Exception Reporter:
Attachments: exception

Description Lukas Jungmann 2006-02-06 13:53:22 UTC
[200602052300]

-have web FF or webproject with existing sources ($URL)
-open servlet (in FF) or example.HelloWorld_SEI (in webprj with ex. sources)
-invoke CC

=> java.lang.NullPointerException
	at
org.netbeans.modules.web.project.WebCompilationUnitProvider.findPersistenceCompilationUnit(WebCompilationUnitProvider.java:80)
	at
org.netbeans.modules.web.project.WebCompilationUnitProvider.findCompilationUnit(WebCompilationUnitProvider.java:45)
	at
org.netbeans.modules.web.project.WebCompilationUnitProvider.findCompilationUnits(WebCompilationUnitProvider.java:52)
	at
org.netbeans.modules.j2ee.metadata.CompilationUnitProvider.getCompilationUnits(CompilationUnitProvider.java:81)
...
Comment 1 Lukas Jungmann 2006-02-06 13:55:53 UTC
Created attachment 28767 [details]
exception
Comment 2 Lukas Jungmann 2006-02-06 13:56:38 UTC
regression against 5.0 => P1
Comment 3 Martin Adamek 2006-02-16 15:22:08 UTC
Fixed.
/cvs/web/project/src/org/netbeans/modules/web/project/Attic/WebPersistenceProvider.java,v
 <--  WebPersistenceProvider.java
new revision: 1.1.2.2; previous revision: 1.1.2.1
Comment 4 Lukas Jungmann 2006-03-21 16:47:53 UTC
v.