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 247595 - NullPointerException at com.sun.tools.javac.comp.Attr.attribTree
Summary: NullPointerException at com.sun.tools.javac.comp.Attr.attribTree
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-30 12:02 UTC by henri127
Modified: 2016-01-09 02:42 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 211599


Attachments
stacktrace (4.03 KB, text/plain)
2014-09-30 12:02 UTC, henri127
Details
the dump file mentionned (6.77 KB, application/octet-stream)
2014-10-01 01:20 UTC, henri127
Details
stacktrace (4.52 KB, text/plain)
2015-02-14 23:57 UTC, henri127
Details
stacktrace (6.26 KB, text/plain)
2015-03-12 10:47 UTC, henri127
Details
stacktrace (4.89 KB, text/plain)
2015-11-20 16:14 UTC, Vladimir Voskresensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description henri127 2014-09-30 12:02:26 UTC
Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.20-b23, Java(TM) SE Runtime Environment, 1.8.0_20-b26
OS: Windows 7

User Comments:
GUEST: The exception occurred when editing the class.

henri127: ask to report




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:613)
   at com.sun.tools.javac.comp.Attr.attribType(Attr.java:675)
   at com.sun.tools.javac.comp.Attr.attribType(Attr.java:668)
   at com.sun.tools.javac.comp.MemberEnter.visitVarDef(MemberEnter.java:849)
   at com.sun.tools.javadoc.JavadocMemberEnter.visitVarDef(JavadocMemberEnter.java:88)
   at org.netbeans.lib.nbjavac.services.NBJavadocMemberEnter.visitVarDef(NBJavadocMemberEnter.java:90)
Comment 1 henri127 2014-09-30 12:02:29 UTC
Created attachment 149617 [details]
stacktrace
Comment 2 henri127 2014-10-01 01:20:51 UTC
Created attachment 149631 [details]
the dump file mentionned

after gradle plugin update of 30-09-2014
Comment 3 henri127 2015-02-14 23:57:33 UTC
Created attachment 151999 [details]
stacktrace

<Please provide a description of the problem or the steps to reproduce>
Background scnning remains at 63% without finishing
Comment 4 henri127 2015-03-12 10:47:20 UTC
Created attachment 152574 [details]
stacktrace

background scanning and checking for external changes create a deadlock
Comment 5 cezariusz 2015-05-10 08:31:45 UTC
I had this code:
        String messages[] = {...};
        State states[] = {...};
        assertEquals(messages.length, states.length);
        Engine engine = new Engine();
        Message ctr;
        for (int i = 0; i < messages.length; i++) {
            ctr = readCtr(messages[i]);
            engine.process(ctr);
            State state = engine.getState();
            assertEquals("At step " + i, states[i], state);
        }

I inserted "(" to the line with "assertEquals", so when the exception occurred it looked like this:

            assertEquals("At step " + (i, states[i], state);
Comment 6 Vladimir Voskresensky 2015-11-20 16:14:55 UTC
Created attachment 157435 [details]
stacktrace

typed dot (.) after
 in ret = (memory.$at(0) << 26) & (memory.$at(1) << 16) & (memory
Comment 7 Exceptions Reporter 2015-12-09 02:07:14 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=211599
Comment 9 Quality Engineering 2016-01-09 02:42:01 UTC
Integrated into 'main-silver', will be available in build *201601090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/015490523391
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #247570, #247595, #257005, and #257392 - fixed.