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 236522 - NullPointerException at com.sun.tools.javac.comp.Attr.visitTry
Summary: NullPointerException at com.sun.tools.javac.comp.Attr.visitTry
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-29 17:04 UTC by faramir2
Modified: 2017-12-10 00:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 204254


Attachments
stacktrace (3.12 KB, text/plain)
2013-09-29 17:04 UTC, faramir2
Details
stacktrace (6.13 KB, text/plain)
2017-12-10 00:51 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
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 1 faramir2 2013-09-29 17:04:05 UTC
Created attachment 140624 [details]
stacktrace
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
Comment 3 Exceptions Reporter 2017-12-10 00:51:10 UTC
Created attachment 165548 [details]
stacktrace

I copied a class (with refactor) to a new class.
After that Netbeans stopped to compile anything