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.
NetBeans IDE Dev (Build 200604241800) 1.5.0_06; Java HotSpot(TM) Client VM 1.5.0_06-b05 Windows XP version 5.1 running on x86 en_GB (nb); Cp1252 Steps: 1. Open class into the editor tab. 2. Add new method in it. 3. Type "for" and invoke code completion 4. Choose "for(int i=0; i < ...)" (3rd option) NPE is thrown.
Created attachment 30039 [details] NPE
I suppose you called CC when method was just created and the whole file was not reparsed. Am I right? The abbrev is then called form wrong context (see issue 72301 and issue 75338)
Fixed with the new Java language infrastructure recently merged to trunk.
Verified in NetBeans IDE Dev (Build 200610261800)