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.
Build: NetBeans IDE Dev (Build 201203230400) VM: Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05 OS: Windows 7 User Comments: muellermi: invoked "remove surrounding" on if statement Stacktrace: java.lang.NullPointerException at org.netbeans.modules.java.editor.codegen.RemoveSurroundingCodeAction$Deleter.addStat(RemoveSurroundingCodeAction.java:431) at org.netbeans.modules.java.editor.codegen.RemoveSurroundingCodeAction$Deleter.access$500(RemoveSurroundingCodeAction.java:219) at org.netbeans.modules.java.editor.codegen.RemoveSurroundingCodeAction$Deleter$1.run(RemoveSurroundingCodeAction.java:284) at org.netbeans.modules.java.editor.codegen.RemoveSurroundingCodeAction$Deleter$1.run(RemoveSurroundingCodeAction.java:266) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:665) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:655)
Created attachment 117211 [details] stacktrace
Created attachment 117306 [details] stacktrace NPE whne remove surrounding code for single statement (System.out) wrapped in if statement
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/2e8ddec2b10c