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.
|Summary:||NullPointerException at com.sun.tools.javac.comp.Attr.visitTry|
|Component:||Compiler||Assignee:||Dusan Balek <dbalek>|
|Issue Type:||DEFECT||Exception Reporter:||204254|
Description faramir2 2013-09-29 17:04:01 UTC
This bug was originally marked as duplicate of bug 153664, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 7.4 RC1 (Build 201309162201) VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b50, Java(TM) SE Runtime Environment, 1.8.0-ea-b108 OS: Windows 7 User Comments: faramir2: I don't know how can I reproduce this one, but I copied one .java file WaitTests.java (with public static void main(String args) method) to new file LockTets.java (both files were in waittests source package). Then I changed Object to Lock and assigned ReentrantLock. Then I pressed CTRL+SHIFT+I and then I had problem - it was unable to click OK or Cancel; moreover, window shows unknown class 'i' but I had 'i' only as variable name and 'int' was before. I was able to close that window by pressing ESC key. After some time, after pressing CTRL+SHIFT+I again, I was able to fix import, but I had problem with code completion and code assistant (empty, not showing...) Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.comp.Attr.visitTry(Attr.java:1416) at com.sun.tools.javac.tree.JCTree$JCTry.accept(JCTree.java:1173) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:589) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:658) at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:674) at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1159)
Comment 2 Exceptions Reporter 2016-03-18 22:47:27 UTC
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=204254