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.
Summary: | NullPointerException at org.netbeans.modules.form.FormDesigner.isInDesigner | ||
---|---|---|---|
Product: | guibuilder | Reporter: | Jesse Glick <jglick> |
Component: | Code | Assignee: | issues@guibuilder <issues> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | bartvdc, carcassi, exceptions_reporter, FiruzzZ, jgzornoza, mhkim, rov63rus |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 80546 |
Bug Depends on: | |||
Bug Blocks: | 136425 | ||
Attachments: | stacktrace |
Description
Jesse Glick
2010-08-25 11:53:48 UTC
Created attachment 101656 [details]
stacktrace
*** Bug 190944 has been marked as a duplicate of this bug. *** *** Bug 193784 has been marked as a duplicate of this bug. *** Steps to reproduce: * Have two GUI forms, start IDE where none is opened. * Open the first form, then second. Note that Inspector still shows the first one (bug 195491). * Do not touch anything and close the second form (by x button). Then close the first form as well. * Open the first form again. Note that Inspector shows content of the second form (that should now be closed). * Try to right click e.g. on JFrame node in the Inspector, or close the form -> NPE. The problem is that after opening a form it is not properly "activated", i.e. connected with Inspector and given some selected node. (It works for the first form due to a specific workaround of another problem). Such inactivated form is then not properly closed - the designer is cleaned, but the form stays registered as opened. This causes various problems later. The cause is the separation of form loading into several phases when componentActivated originally called at the end is now called too early. http://hg.netbeans.org/core-main/rev/9bbf1d157bba Integrated into 'main-golden', will be available in build *201102230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/9bbf1d157bba User: Tomas Pavek <tpavek@netbeans.org> Log: #189837, 195491: componentActivated() called two early in the two-phase opening, so make sure the form is correctly activated (selected) later *** Bug 197001 has been marked as a duplicate of this bug. *** *** Bug 216616 has been marked as a duplicate of this bug. *** |