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

Summary: NullPointerException at com.sun.tools.javac.code.Type.isCompound
Product: java Reporter: Chiana
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED WORKSFORME    
Severity: normal CC: Chiana, sreimers
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 198925
Attachments: stacktrace
stacktrace
stacktrace

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.