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

Summary: NullPointerException at
Product: java Reporter: faramir2 <faramir2>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: emiddio
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 204254
Attachments: stacktrace

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 (with public static void main(String[] args) method) to new file (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...)

Comment 1 faramir2 2013-09-29 17:04:05 UTC
Created attachment 140624 [details]
Comment 2 Exceptions Reporter 2016-03-18 22:47:27 UTC
This bug already has 5 duplicates 
Comment 3 Exceptions Reporter 2017-12-10 00:51:10 UTC
Created attachment 165548 [details]

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