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 142356 - NullPointerException at org.netbeans.modules.form.FormEditor.createCodeEditorPane
Summary: NullPointerException at org.netbeans.modules.form.FormEditor.createCodeEditor...
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-31 08:40 UTC by manusa
Modified: 2009-02-20 12:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 84531


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description manusa 2008-07-31 08:40:21 UTC
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)
Comment 1 Jan Stola 2008-07-31 15:57:59 UTC
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
Comment 2 pribyl 2009-02-20 12:43:02 UTC
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