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

Summary: NPE after new Entity was created in J2SE project
Product: javaee Reporter: Martin Adamek <madamek>
Component: EditorAssignee: Sanjeeb Sahoo <sahoo>
Status: VERIFIED FIXED    
Severity: blocker CC: tslota
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Exception log

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. ***