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 146416 - NullPointerException at com.sun.tools.javac.comp.MemberEnter.getMethodEnv
Summary: NullPointerException at com.sun.tools.javac.comp.MemberEnter.getMethodEnv
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Dusan Balek
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
: 179951 (view as bug list)
Depends on:
Blocks: 152191
  Show dependency tree
 
Reported: 2008-09-06 20:20 UTC by bburette
Modified: 2011-12-02 10:08 UTC (History)
15 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 293


Attachments
stacktrace (1.56 KB, text/plain)
2008-09-06 20:21 UTC, bburette
Details
stacktrace (4.06 KB, text/plain)
2009-10-16 14:02 UTC, Karol Harezlak
Details
stacktrace (1.84 KB, text/plain)
2010-02-12 13:35 UTC, matthies
Details
stacktrace (3.72 KB, text/plain)
2010-03-25 11:34 UTC, Tomas Mysik
Details
stacktrace (839 bytes, text/plain)
2010-08-02 21:07 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bburette 2008-09-06 20:20:58 UTC
Build: NetBeans IDE Dev (Build 200809051401)
VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.comp.MemberEnter.getMethodEnv(MemberEnter.java:783)
        at com.sun.tools.javac.api.JavacTrees.getAttrContext(JavacTrees.java:272)
        at com.sun.tools.javac.api.JavacTrees.getScope(JavacTrees.java:192)
        at com.sun.tools.javac.api.JavacTrees.getScope(JavacTrees.java:84)
        at org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.getEnvImpl(JavaCompletionProvider.java:4237)
        at org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.getCompletionEnvironment(JavaCompletionProvider.java:4193)
Comment 1 bburette 2008-09-06 20:21:09 UTC
Created attachment 69230 [details]
stacktrace
Comment 2 Dusan Balek 2008-09-24 10:30:48 UTC
Is the issue reproducible? Could you eventually attach the source on which the issue was thrown? Thanks.
Comment 3 bburette 2008-09-24 12:54:31 UTC
Never happend again and the source file has *considerably* changed since.
Maybe I was getting low on memory (on my system the IDE eats up to max_mem - 10% in a few hours and remains there).
Sorry but I can't help.
Comment 4 Karol Harezlak 2009-10-16 14:01:59 UTC
Build: NetBeans IDE Dev (Build 200910160201)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.28-15-generic, i386

User Comments: 
While trying to remove breakpoint form editor


Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.comp.MemberEnter.getMethodEnv(MemberEnter.java:796)
        at com.sun.tools.javac.api.JavacTrees.getAttrContext(JavacTrees.java:272)
        at com.sun.tools.javac.api.JavacTrees.getScope(JavacTrees.java:192)
        at com.sun.tools.javac.api.JavacTrees.getScope(JavacTrees.java:84)
        at org.netbeans.api.java.source.TreeUtilities.scopeFor(TreeUtilities.java:456)
        at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl$12.run(EditorContextImpl.java:1853)
Comment 5 Karol Harezlak 2009-10-16 14:02:28 UTC
Created attachment 89626 [details]
stacktrace
Comment 6 Exceptions Reporter 2009-10-16 14:02:40 UTC
This issue already has 54 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=293
Comment 7 matthies 2010-02-12 13:35:48 UTC
Created attachment 94132 [details]
stacktrace

code completion
Comment 8 Tomas Mysik 2010-03-25 11:34:58 UTC
Created attachment 95784 [details]
stacktrace
Comment 9 Jesse Glick 2010-08-02 21:07:39 UTC
Created attachment 101150 [details]
stacktrace

Making small edits to DefaultReplaceTokenProvider.java.
Comment 10 Dusan Balek 2010-12-13 15:17:27 UTC
*** Bug 179951 has been marked as a duplicate of this bug. ***
Comment 11 Marian Mirilovic 2011-12-02 10:08:18 UTC
113 reports so far - at least P2

Also wanted to say that it was probably somehow eliminated, because last report came a year ago - so worksforme ?