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 - NPE from CC
Summary: NPE from CC
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Freeform (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Martin Adamek
URL: http://www-128.ibm.com/developerworks...
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2006-02-06 13:53 UTC by Lukas Jungmann
Modified: 2006-03-21 16:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception (1.37 KB, text/plain)
2006-02-06 13:55 UTC, Lukas Jungmann
Details

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