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 240941 - NullPointerException at org.netbeans.modules.j2ee.jpa.refactoring.whereused.RelationshipMappingWhereUsed.prepare
Summary: NullPointerException at org.netbeans.modules.j2ee.jpa.refactoring.whereused.R...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-24 20:04 UTC by wissenstein
Modified: 2014-01-29 02:53 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206948


Attachments
stacktrace (854 bytes, text/plain)
2014-01-24 20:04 UTC, wissenstein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wissenstein 2014-01-24 20:04:18 UTC
This bug was originally marked as duplicate of bug 225180, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0 Beta (Build 201401141042)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Windows 7

User Comments:
wissenstein: I opened Usages pane to find all usages of a private member of class.

GUEST: just started up a few minutes ago; edited vars; deleted some.

mgukov: Find usages enum constant and remove it during this process

GUEST: re-search Usage of static final variable after removing all traces of it




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.j2ee.jpa.refactoring.whereused.RelationshipMappingWhereUsed.prepare(RelationshipMappingWhereUsed.java:127)
   at org.netbeans.modules.j2ee.jpa.refactoring.JPARefactoringPlugin.prepare(JPARefactoringPlugin.java:92)
   at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(AbstractRefactoring.java:437)
   at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:421)
   at org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:232)
   at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare$2.run(ParametersPanel.java:1022)
Comment 1 wissenstein 2014-01-24 20:04:21 UTC
Created attachment 144354 [details]
stacktrace
Comment 2 Sergey Petrov 2014-01-28 14:02:43 UTC
http://hg.netbeans.org/web-main/rev/0e6030363732
can't verify, but most probable case is covered by null check
Comment 3 Quality Engineering 2014-01-29 02:53:16 UTC
Integrated into 'main-silver', will be available in build *201401290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0e6030363732
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #240941 null check