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 221090

Summary: NullPointerException at com.sun.tools.javac.tree.TreeInfo.getStartPos
Product: java Reporter: bitter_fox
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 194265
Attachments: stacktrace

Description bitter_fox 2012-10-30 13:29:47 UTC
Build: NetBeans IDE Dev (Build jdk8lambda-1572-on-20121024)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b13, Java(TM) SE Runtime Environment, 1.8.0-ea-b43
OS: Windows 7

User Comments:
bitter_fox: class C
{
static <
}

This code makes the NPE.

I'm sorry if this report would be resent.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.tree.TreeInfo.getStartPos(TreeInfo.java:426)
   at com.sun.tools.javac.api.JavacTrees$1.getStartPosition(JavacTrees.java:147)
   at org.netbeans.api.java.source.TreeUtilities$1PathFinder.scan(TreeUtilities.java:274)
   at org.netbeans.api.java.source.TreeUtilities$1PathFinder.scan(TreeUtilities.java:263)
   at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:80)
   at com.sun.source.util.TreeScanner.scan(TreeScanner.java:90)
Comment 1 bitter_fox 2012-10-30 13:29:48 UTC
Created attachment 126776 [details]
stacktrace