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

Summary: NullPointerException at com.sun.tools.javac.comp.Attr.attribType
Product: java Reporter: unr303 <unr303>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: blocker CC: arturaz, gtg
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=42015
Issue Type: DEFECT Exception Reporter: 42015
Bug Depends on:    
Bug Blocks: 152191    
Attachments: ide log
source
stacktrace

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.