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 258076

Summary: NullPointerException at org.netbeans.api.java.source.ElementUtilities.enclosingTypeElementImpl
Product: java Reporter: javatlacati <javatlacati>
Component: RefactoringAssignee: Svata Dedic <sdedic>
Status: RESOLVED WORKSFORME    
Severity: normal CC: sdedic
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 222622
Attachments: stacktrace

Description javatlacati 2016-02-20 10:38:06 UTC
Build: NetBeans IDE Dev (Build 201602191138)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b15
OS: Windows 7

User Comments:
javatlacati: Right click, Find usages over a module in navigator panel




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.api.java.source.ElementUtilities.enclosingTypeElementImpl(ElementUtilities.java:160)
   at org.netbeans.api.java.source.SourceUtils.getEnclosingTypeElement(SourceUtils.java:281)
   at org.netbeans.api.java.source.TreePathHandle.create(TreePathHandle.java:295)
   at org.netbeans.modules.refactoring.java.ui.WhereUsedQueryUI.create(WhereUsedQueryUI.java:323)
   at org.netbeans.modules.refactoring.java.ui.ContextAnalyzer$2.treePathHandleResolved(ContextAnalyzer.java:129)
   at org.netbeans.modules.refactoring.java.ui.ContextAnalyzer$TreePathHandleTask.run(ContextAnalyzer.java:254)
Comment 1 javatlacati 2016-02-20 10:38:08 UTC
Created attachment 158581 [details]
stacktrace
Comment 2 Svata Dedic 2016-08-08 07:42:43 UTC
could not reproduce; the code seems to handle possible null conditions for data going to the enclosingTypeElementImpl. Please provide more specific instructions.