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 226566 - NullPointerException at com.sun.tools.javac.code.Type.isCompound
Summary: NullPointerException at com.sun.tools.javac.code.Type.isCompound
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-22 21:50 UTC by Chiana
Modified: 2015-02-04 03:29 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 198925


Attachments
stacktrace (5.63 KB, text/plain)
2013-02-22 21:50 UTC, Chiana
Details
stacktrace (5.88 KB, text/plain)
2013-02-22 21:53 UTC, Chiana
Details
stacktrace (5.17 KB, text/plain)
2013-02-23 13:23 UTC, sreimers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chiana 2013-02-22 21: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: Accidentally typed two opening parenthesis instead of one.
Resulting code is;
sel2 = "SELECT * FROM " + t2.tableName(()) + " WHERE " + rel.mappedBy() + "=" + idO.toString();

original has: "t2.tableName + "WHERE..."
Will revert changes and see if it happens again




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.code.Type.isCompound(Type.java:417)
   at com.sun.tools.javac.comp.Attr.checkIntersectionTarget(Attr.java:2453)
   at com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2343)
   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:627)
Comment 1 Chiana 2013-02-22 21:50:43 UTC
Created attachment 131758 [details]
stacktrace
Comment 2 Chiana 2013-02-22 21:53:04 UTC
Created attachment 131759 [details]
stacktrace

First it didn't happen again, but then I saved the file after removing the parenthesis so that it was unmodified when trying it.
Comment 3 sreimers 2013-02-23 13:23:04 UTC
Created attachment 131774 [details]
stacktrace
Comment 4 Quality Engineering 2015-02-04 03:29:22 UTC
Reported for 7.3.x or earlier, no new info since then -> closing as worksforme, please reopen in case you see it.