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 226568 - NullPointerException at com.sun.tools.javac.code.Types$DescriptorCache.get
Summary: NullPointerException at com.sun.tools.javac.code.Types$DescriptorCache.get
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.3
Hardware: All All
: P1 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 227036 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-02-22 22:50 UTC by Chiana
Modified: 2013-04-03 13:45 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 198929


Attachments
stacktrace (3.65 KB, text/plain)
2013-02-22 22:50 UTC, Chiana
Details
stacktrace (4.47 KB, text/plain)
2013-02-23 02:59 UTC, ecerichter
Details
stacktrace (2.56 KB, text/plain)
2013-02-23 13:59 UTC, sreimers
Details
stacktrace (4.03 KB, text/plain)
2013-02-25 17:02 UTC, drazisil
Details
stacktrace (4.66 KB, text/plain)
2013-02-26 18:14 UTC, misterm
Details
stacktrace (3.00 KB, text/plain)
2013-02-26 19:17 UTC, MackSix
Details
stacktrace (3.33 KB, text/plain)
2013-02-27 07:53 UTC, Chiana
Details
stacktrace (3.33 KB, text/plain)
2013-02-27 07:56 UTC, Chiana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chiana 2013-02-22 22:50:42 UTC
Build: NetBeans IDE Dev (Build 201302202300)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_13-b20
OS: Windows 7

User Comments:
Chiana: Was just coding along...

Part beeing edited:
  if (invalid) S+="Inv "; else S+="    ";
    S+="Key:"+ (keyForData!=null?keyForData.toString():"NULL ");
    S+="Data:"+ ()         <- Was editing here
    return S;
 
I typed the parenthesis to make the line look similar to the one above.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.code.Types$DescriptorCache.get(Types.java:405)
   at com.sun.tools.javac.code.Types.findDescriptorType(Types.java:568)
   at com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2344)
   at com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1597)
   at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:609)
   at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:634)
Comment 1 Chiana 2013-02-22 22:50:44 UTC
Created attachment 131761 [details]
stacktrace
Comment 2 ecerichter 2013-02-23 02:59:03 UTC
Created attachment 131766 [details]
stacktrace

Using autocomplete (Ctrl+Space)
Comment 3 sreimers 2013-02-23 13:59:04 UTC
Created attachment 131776 [details]
stacktrace
Comment 4 ecerichter 2013-02-23 16:23:36 UTC
Changing to P1 because it makes IDE unusable. Having a single violation of syntax in source code completely breaks the autocomplete functionality.
Comment 5 Exceptions Reporter 2013-02-24 09:38:05 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=198929
Comment 6 ecerichter 2013-02-24 14:20:01 UTC
Confirmed that still happens in 201302222300.

Edson
Comment 7 Chiana 2013-02-24 17:20:59 UTC
...and in 201302232300...
Comment 8 Chiana 2013-02-24 17:22:11 UTC
This is possibly related to bug #226139, check that...
Comment 9 Chiana 2013-02-24 17:23:15 UTC
...and #226566 is also possibly related.
Comment 10 drazisil 2013-02-25 17:02:09 UTC
Created attachment 131848 [details]
stacktrace

Typed (
Comment 11 misterm 2013-02-26 18:14:14 UTC
Created attachment 131910 [details]
stacktrace
Comment 12 MackSix 2013-02-26 19:17:15 UTC
Created attachment 131912 [details]
stacktrace

Typing some Java source code and this happened.
Comment 13 Chiana 2013-02-27 07:53:15 UTC
Created attachment 131937 [details]
stacktrace

Was adding a toString to a class, just typing "("
Comment 14 Chiana 2013-02-27 07:56:15 UTC
Created attachment 131938 [details]
stacktrace

Tried to DELETE the parenthesis reported in #661408 (report id) for bug #226568
Comment 16 Quality Engineering 2013-03-06 01:54:02 UTC
Integrated into 'main-golden', will be available in build *201303052300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c37a4b2561ba
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #226568: NullPointerException at com.sun.tools.javac.code.Types$DescriptorCache.get - fixed.
Comment 17 Dusan Balek 2013-04-03 13:45:00 UTC
*** Bug 227036 has been marked as a duplicate of this bug. ***