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 76167 - NPE after new Entity was created in J2SE project
Summary: NPE after new Entity was created in J2SE project
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Editor (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Sanjeeb Sahoo
URL:
Keywords:
: 76446 77177 77835 79867 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-10 16:15 UTC by Martin Adamek
Modified: 2006-07-19 10:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception log (2.80 KB, text/plain)
2006-05-10 16:15 UTC, Martin Adamek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Adamek 2006-05-10 16:15:02 UTC
1) new J2SE project
2) new Persistence Unit
3) new Entity Class
4) get NPE after class is opened in editor
Editing Entity class is not possible, NPEs all the time after using CC for
annotations.
Comment 1 Martin Adamek 2006-05-10 16:15:32 UTC
Created attachment 30322 [details]
Exception log
Comment 2 Sanjeeb Sahoo 2006-05-11 13:03:29 UTC
This is a regression. I am looking into it.
Comment 3 Sanjeeb Sahoo 2006-05-16 07:33:47 UTC
This is *not* a regression.
Fix is to check for null before using ctx.getEntityMapping(). 

Checking in
src/org/netbeans/modules/j2ee/verification/persistence/rules/annotation/EntityNameUnique.java;
/cvs/j2ee/verification/src/org/netbeans/modules/j2ee/verification/persistence/rules/annotation/Attic/EntityNameUnique.java,v
 <--  EntityNameUnique.java
new revision: 1.1.2.2; previous revision: 1.1.2.1
done
Checking in
src/org/netbeans/modules/j2ee/verification/persistence/rules/annotation/NamedQueryUnique.java;
/cvs/j2ee/verification/src/org/netbeans/modules/j2ee/verification/persistence/rules/annotation/Attic/NamedQueryUnique.java,v
 <--  NamedQueryUnique.java
new revision: 1.1.2.3; previous revision: 1.1.2.2
done
Comment 4 Sanjeeb Sahoo 2006-05-16 18:09:35 UTC
*** Issue 76446 has been marked as a duplicate of this issue. ***
Comment 5 Petr Blaha 2006-05-17 10:18:32 UTC
build 20060517
Comment 6 Tomasz Slota 2006-06-13 16:17:22 UTC
*** Issue 77835 has been marked as a duplicate of this issue. ***
Comment 7 dhinojosa 2006-06-13 16:47:33 UTC
Will this fix be on the next Q-Build?
Comment 8 Tomasz Slota 2006-07-19 10:16:36 UTC
*** Issue 77177 has been marked as a duplicate of this issue. ***
Comment 9 Tomasz Slota 2006-07-19 10:18:21 UTC
*** Issue 79867 has been marked as a duplicate of this issue. ***