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 254390 - NullPointerException at org.netbeans.modules.form.RADConnectionPropertyEditor.supportsCustomEditor
Summary: NullPointerException at org.netbeans.modules.form.RADConnectionPropertyEditor...
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-15 15:46 UTC by jarome
Modified: 2015-09-12 03:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 208167


Attachments
stacktrace (3.40 KB, text/plain)
2015-08-15 15:46 UTC, jarome
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jarome 2015-08-15 15:46:12 UTC
Build: NetBeans IDE 8.1 Beta (Build 201508041349)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16
OS: Mac OS X

User Comments:
GUEST: error

jarome: Tryinbg to set background of textArea

GUEST: Error while recalling the foregraound color editor in the gui editor




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.form.RADConnectionPropertyEditor.supportsCustomEditor(RADConnectionPropertyEditor.java:178)
   at org.netbeans.modules.form.FormCustomEditor.<init>(FormCustomEditor.java:174)
   at org.netbeans.modules.form.FormPropertyEditor.getCustomEditor(FormPropertyEditor.java:325)
   at org.openide.explorer.propertysheet.PropertyDialogManager.<init>(PropertyDialogManager.java:132)
   at org.openide.explorer.propertysheet.CustomEditorAction.actionPerformed(CustomEditorAction.java:222)
   at org.openide.explorer.propertysheet.SheetTable.editCellAt(SheetTable.java:1135)
Comment 1 jarome 2015-08-15 15:46:15 UTC
Created attachment 155365 [details]
stacktrace
Comment 2 Tomas Pavek 2015-09-11 09:14:14 UTC
The exception looks like opening a property editor from property sheet for a form that is not opened. No clue how it could happen.

Added check for null blindly.

http://hg.netbeans.org/jet-main/rev/e66cc3195015
Comment 3 Quality Engineering 2015-09-12 03:06:10 UTC
Integrated into 'main-silver', will be available in build *201509120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e66cc3195015
User: Tomas Pavek <tpavek@netbeans.org>
Log: #254390: avoid NPE in weird situation when property editor is opened for a form that is closed (cause unknown)