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.
Steps: 1) Open any java file 2) On a line with java code type ':' at the end of the line. 3) Press Enter. NPE is thrown.
Created attachment 17511 [details] NPE Stack trace
It's likely related to fix of issue 48329 so assigning to Dusan.
Fixed in [maintrunk]. Checking in JavaFormatSupport.java; /cvs/editor/libsrc/org/netbeans/editor/ext/java/JavaFormatSupport.java JavaFormatSupport.java new revision: 1.33; previous revision: 1.32 done
This is a bug found in NetCAT 4.0 program.
*** Issue 48864 has been marked as a duplicate of this issue. ***
Verified in dev build 200409131800. I tried push enter after the ':' at the end of the line. The caret was moved to next line (under the char ":"), 4 spaces right without exception.
Integrated into [release40_beta2] branch. Checking in JavaFormatSupport.java; /cvs/editor/libsrc/org/netbeans/editor/ext/java/JavaFormatSupport.java,v <-- JavaFormatSupport.java new revision: 1.32.4.1; previous revision: 1.32 done