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 - NullPointerException at com.sun.tools.javac.comp.Attr.visitSelect
Summary: NullPointerException at com.sun.tools.javac.comp.Attr.visitSelect
Status: RESOLVED DUPLICATE of bug 163989
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-30 15:17 UTC by stefan79
Modified: 2009-06-18 10:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 113238


Attachments
stacktrace (3.45 KB, text/plain)
2008-09-30 15:17 UTC, stefan79
Details
The File where the NPE occured (28.19 KB, text/plain)
2008-09-30 15:20 UTC, stefan79
Details
stacktrace (3.46 KB, text/plain)
2009-02-27 22:06 UTC, diesil
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***