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 131812 - NullPointerException at com.sun.tools.javac.comp.Attr.attribType
Summary: NullPointerException at com.sun.tools.javac.comp.Attr.attribType
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Dusan Balek
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks: 152191
  Show dependency tree
 
Reported: 2008-04-02 11:23 UTC by unr303
Modified: 2009-02-19 21:08 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 42015


Attachments
ide log (226.21 KB, text/plain)
2008-04-02 11:23 UTC, unr303
Details
source (3.72 KB, text/plain)
2008-04-02 11:24 UTC, unr303
Details
stacktrace (1.34 KB, text/plain)
2008-07-17 20:18 UTC, swpalmer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description unr303 2008-04-02 11:23:06 UTC
new Basi, ctrl+space -> exception


Build: NetBeans IDE Dev (Build 200803302302)
VM: Java HotSpot(TM) 64-Bit Server VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: Linux, 2.6.22.17-0.1-default, amd64
User comments: 
STACKTRACE: (first 10 lines)
java.lang.NullPointerException
        at com.sun.tools.javac.comp.Attr.attribType(Attr.java:306)
        at com.sun.tools.javac.api.JavacTaskImpl.parseType(JavacTaskImpl.java:627)
        at org.netbeans.api.java.source.TreeUtilities.parseType(TreeUtilities.java:338)
        at
org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.insideNewClass(JavaCompletionProvider.java:1498)
        at
org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.resolveCompletion(JavaCompletionProvider.java:571)
        at org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.run(JavaCompletionProvider.java:359)
        at org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.run(JavaCompletionProvider.java:123)
        at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:665)
        at org.netbeans.api.java.source.JavaSource.runWhenScanFinished(JavaSource.java:822)
        at
org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.query(JavaCompletionProvider.java:267)
Comment 1 unr303 2008-04-02 11:23:26 UTC
Created attachment 59531 [details]
ide log
Comment 2 unr303 2008-04-02 11:24:22 UTC
Created attachment 59532 [details]
source
Comment 3 unr303 2008-04-02 11:28:22 UTC
Before file was saved pressing ctrl+space in mentioned locaton always caused exception. After file was saved exception
stopped.
Comment 4 swpalmer 2008-07-17 20:18:38 UTC
Build: NetBeans IDE Dev (Build 200807040101)
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: 
ctrl-space between the 'g' and the '(' to correct case 
something = new something();

something = new SomeThing();
Comment 5 swpalmer 2008-07-17 20:18:48 UTC
Created attachment 64893 [details]
stacktrace
Comment 6 Dusan Balek 2009-01-15 14:08:35 UTC
Should be fixed in in build *200811270201*. See Issue #146205.