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 145961 - NullPointerException at com.sun.tools.javac.comp.Flow.letInit
Summary: NullPointerException at com.sun.tools.javac.comp.Flow.letInit
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
Depends on:
Blocks: 152191
  Show dependency tree
 
Reported: 2008-09-02 19:44 UTC by vieiro
Modified: 2009-02-19 21:08 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 103950


Attachments
stacktrace (31 bytes, text/plain)
2008-09-02 19:45 UTC, vieiro
Details
stacktrace (3.92 KB, text/plain)
2008-09-11 13:37 UTC, wobster
Details
stacktrace (3.83 KB, text/plain)
2008-09-15 01:09 UTC, _ gtzabari
Details
My stack trace seems to be different (306.25 KB, text/plain)
2008-09-15 01:11 UTC, _ gtzabari
Details
stacktrace (2.67 KB, text/plain)
2008-10-13 14:27 UTC, piastucki
Details
stacktrace (5.36 KB, text/plain)
2008-10-15 15:36 UTC, aldobrucale
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vieiro 2008-09-02 19:44:49 UTC
Build: NetBeans IDE 6.5 Beta (Build 200808111757)
VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Linux, 2.6.24-16-generic, i386

User Comments: 
Editing a file (did I save? I can't remember)

Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.comp.Flow.letInit(Flow.java:389)
        at com.sun.tools.javac.comp.Flow.visitAssign(Flow.java:1174)
        at com.sun.tools.javac.tree.JCTree$JCAssign.accept(JCTree.java:1444)
        at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
        at com.sun.tools.javac.comp.Flow.scanExpr(Flow.java:515)
        at com.sun.tools.javac.comp.Flow.visitSwitch(Flow.java:919)
Comment 1 vieiro 2008-09-02 19:45:05 UTC
Created attachment 68898 [details]
stacktrace
Comment 2 vieiro 2008-09-02 20:20:33 UTC
Happened while editing. I had an unclosed "switch" statement in my code, opened in an undocked window. When the focus
was gained in the window the exception was thrown.

(It's painful when an exception is thrown in focusGained/focusLost and a Dialog appears, isn't it?)
Comment 3 Jan Becicka 2008-09-05 13:54:02 UTC
Seems to be random.
Comment 4 wobster 2008-09-11 13:37:36 UTC
Build: NetBeans IDE Dev (Build 200809101401)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Windows XP, 5.1, x86

User Comments: 
just trying to create a switch statement

Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.comp.Flow.letInit(Flow.java:389)
        at com.sun.tools.javac.comp.Flow.visitAssign(Flow.java:1171)
        at com.sun.tools.javac.tree.JCTree$JCAssign.accept(JCTree.java:1444)
        at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
        at com.sun.tools.javac.comp.Flow.scanExpr(Flow.java:515)
        at com.sun.tools.javac.comp.Flow.visitSwitch(Flow.java:916)
Comment 5 wobster 2008-09-11 13:37:40 UTC
Created attachment 69654 [details]
stacktrace
Comment 6 _ gtzabari 2008-09-15 01:09:36 UTC
Build: NetBeans IDE Dev (Build 200809121401)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b31
OS: Windows Vista, 6.0, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.comp.Flow.letInit(Flow.java:389)
        at com.sun.tools.javac.comp.Flow.visitAssign(Flow.java:1171)
        at com.sun.tools.javac.tree.JCTree$JCAssign.accept(JCTree.java:1444)
        at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
        at com.sun.tools.javac.tree.TreeScanner.visitExec(TreeScanner.java:171)
        at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1146)
Comment 7 _ gtzabari 2008-09-15 01:09:44 UTC
Created attachment 69837 [details]
stacktrace
Comment 8 _ gtzabari 2008-09-15 01:11:54 UTC
Created attachment 69838 [details]
My stack trace seems to be different
Comment 9 Exceptions Reporter 2008-10-08 09:33:04 UTC
This issue has already 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=103950
Comment 10 piastucki 2008-10-13 14:27:34 UTC
Build: NetBeans IDE Dev (Build 200810111401)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Linux, 2.6.24-21-generic, i386

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.comp.Flow.letInit(Flow.java:389)
        at com.sun.tools.javac.comp.Flow.visitAssign(Flow.java:1171)
        at com.sun.tools.javac.tree.JCTree$JCAssign.accept(JCTree.java:1444)
        at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
        at com.sun.tools.javac.tree.TreeScanner.visitExec(TreeScanner.java:171)
        at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1146)
Comment 11 piastucki 2008-10-13 14:27:44 UTC
Created attachment 71666 [details]
stacktrace
Comment 12 aldobrucale 2008-10-15 15:36:42 UTC
Build: NetBeans IDE Dev (Build 200810150201)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Linux, 2.6.24-21-generic, i386

User Comments: 
editing java file

Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.comp.Flow.letInit(Flow.java:389)
        at com.sun.tools.javac.comp.Flow.visitAssign(Flow.java:1171)
        at com.sun.tools.javac.tree.JCTree$JCAssign.accept(JCTree.java:1444)
        at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
        at com.sun.tools.javac.tree.TreeScanner.visitExec(TreeScanner.java:171)
        at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1146)
Comment 13 aldobrucale 2008-10-15 15:36:46 UTC
Created attachment 71868 [details]
stacktrace
Comment 14 Exceptions Reporter 2008-10-30 11:10:28 UTC
This issue has already 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=103950
Comment 15 Dusan Balek 2008-12-19 13:05:32 UTC
Fixed.

changeset 08ed9f8920e6 in main/nb-javac
details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=08ed9f8920e6
changeset 2a16713ca059 in main
details: http://hg.netbeans.org/main?cmd=changeset;node=2a16713ca059
Comment 16 Quality Engineering 2008-12-22 15:15:27 UTC
Integrated into 'main-golden', will be available in build *200812221122* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/2a16713ca059
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #145961: NullPointerException at com.sun.tools.javac.comp.Flow.letInit - fixed.