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 6.1 (Build 200804211638) VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12 OS: Windows 2000, 5.0, x86 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.form.FormEditor.createCodeEditorPane(FormEditor.java:1096) at org.netbeans.modules.form.JavaCodeGenerator$CodeEditor.getCustomEditor(JavaCodeGenerator.java:4130) at org.openide.explorer.propertysheet.PropertyDialogManager.<init>(PropertyDialogManager.java:129) at org.openide.explorer.propertysheet.CustomEditorAction.actionPerformed(CustomEditorAction.java:217) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636) at javax.swing.JComponent.processKeyBinding(JComponent.java:2849)
This exception can occur when some form with corrupted guarded blocks is opened and custom property editor for pre/post init/creation code is invoked. Related issue 138996 has been fixed recently - it ensures that the form is marked as read-only when the guarded blocks are corrupted. Unfortunately, some custom property editors do not check whether the form is read-only and expect guarded blocks to be in a good shape. I have fixed JavaCodeGenerator.CodeEditor and RADConnectionPropertyEditor. Modified files: http://hg.netbeans.org/main?cmd=changeset;node=b3849c4891ee
Product Version: NetBeans IDE Dev (Build 200902161401) Java: 1.6.0_12-ea; Java HotSpot(TM) Server VM 11.0-b17 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb) Verified