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 148754

Summary: NullPointerException at com.sun.tools.javac.comp.Attr.visitSelect
Product: java Reporter: stefan79 <stefan79>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: diesil
Priority: P3 Keywords: RANDOM
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=113238
Issue Type: DEFECT Exception Reporter: 113238
Bug Depends on:    
Bug Blocks: 152191    
Attachments: stacktrace
The File where the NPE occured
stacktrace

Description stefan79 2008-09-30 15:17:38 UTC
Build: NetBeans IDE Dev (Build 200809290201)
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

Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:1930)
        at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1655)
        at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:391)
        at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:408)
        at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1329)
        at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1300)
Comment 1 stefan79 2008-09-30 15:17:57 UTC
Created attachment 70906 [details]
stacktrace
Comment 2 stefan79 2008-09-30 15:20:24 UTC
Created attachment 70907 [details]
The File where the NPE occured
Comment 3 stefan79 2008-09-30 15:22:57 UTC
The Error occured at the following Code-Line:

...
F_nad.setC080_3045(Cs_gln);
            ,
...

I think the problem was, that I typed a Comma (in the second line) and then I called the Code-Completion with Ctrl-Space
(in the first line).
Comment 4 Peter Pis 2008-10-01 08:18:10 UTC
Reassigning to java.
Comment 5 Dusan Balek 2008-10-01 14:04:09 UTC
Is it reproducible on your sources or is it just random?
Comment 6 stefan79 2008-10-02 17:20:45 UTC
Sorry but I canĀ“t reproduce.
Comment 7 diesil 2009-02-27 22:06:33 UTC
Build: NetBeans IDE Dev (Build 200902270313)
VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04
OS: Windows XP, 5.1, x86

User Comments: 
using generics

Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:1922)
        at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1655)
        at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:389)
        at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:413)
        at com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:1713)
        at com.sun.tools.javac.tree.JCTree$JCBinary.accept(JCTree.java:1543)
Comment 8 diesil 2009-02-27 22:06:42 UTC
Created attachment 77498 [details]
stacktrace
Comment 9 Dusan Balek 2009-06-18 10:42:10 UTC
Should be already fixed.

*** This issue has been marked as a duplicate of 163989 ***