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 225027

Summary: NullPointerException at com.sun.tools.javac.comp.MemberEnter.getMethodEnv
Product: java Reporter: Alexander Simon <alexvsimon>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED WONTFIX    
Severity: normal CC: alexvsimon, ashishjain_se, cyhelsky, emiddio, janario, mgrebac, misterm, mklaehn
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 189382
Attachments: stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace

Description Alexander Simon 2013-01-17 13:26:11 UTC
This bug was originally marked as duplicate of bug 146416, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 20130117-dd3f9558c33d)
VM: Java HotSpot(TM) Client VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_11-b21
OS: SunOS

Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.comp.MemberEnter.getMethodEnv(MemberEnter.java:896)
   at com.sun.tools.javac.api.JavacTrees.getAttrContext(JavacTrees.java:311)
   at com.sun.tools.javac.api.JavacTrees.getScope(JavacTrees.java:217)
   at com.sun.tools.javac.api.JavacTrees.getScope(JavacTrees.java:84)
   at org.netbeans.api.java.source.TreeUtilities.scopeFor(TreeUtilities.java:501)
   at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl$ParseExpressionTask.run(EditorContextImpl.java:2154)
Comment 1 Alexander Simon 2013-01-17 13:26:14 UTC
Created attachment 130330 [details]
stacktrace
Comment 2 Alexander Simon 2013-01-17 13:28:32 UTC
Created attachment 130331 [details]
stacktrace
Comment 3 Alexander Simon 2013-01-21 11:13:52 UTC
P2 because original bug was P2 (and was not fixed)
Comment 4 misterm 2013-02-04 11:58:59 UTC
Created attachment 130994 [details]
stacktrace
Comment 5 misterm 2013-02-04 12:04:58 UTC
Created attachment 130995 [details]
stacktrace
Comment 6 misterm 2013-02-04 12:07:59 UTC
Created attachment 130996 [details]
stacktrace
Comment 7 Petr Cyhelsky 2013-02-04 13:01:59 UTC
Created attachment 131001 [details]
stacktrace
Comment 8 Martin Balin 2015-09-17 11:22:44 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.