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 68122 - NPE from MultiViewPeer.preferredID opening a form
Summary: NPE from MultiViewPeer.preferredID opening a form
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords: REGRESSION
: 68210 (view as bug list)
Depends on:
Blocks: 47047
  Show dependency tree
 
Reported: 2005-11-04 20:17 UTC by Jesse Glick
Modified: 2008-12-22 21:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (3.70 KB, text/plain)
2005-11-04 20:19 UTC, Jesse Glick
Details
Binary patch: save as ${nbinstall}/platform6/modules/patches/org-netbeans-core-multiview/68122.jar (29.46 KB, application/octet-stream)
2005-11-04 20:49 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2005-11-04 20:17:05 UTC
After the toolbar patch it is no longer possible to open forms!
Comment 1 Jesse Glick 2005-11-04 20:19:09 UTC
Created attachment 26640 [details]
Stack trace
Comment 2 Jesse Glick 2005-11-04 20:44:33 UTC
Serious enough to deserve a hotfix, I think. Please review. Seems that the model
is set after the constructor finishes, yet in the new toolbar handling code,
preferredID is called inside the constructor, and this method needs a model. Fix
just skips the "editor" mode check when component is first created, since (1) it
is not very important that it be correct, (2) the component has not actually
been docked yet so how could the mode check really work yet?, (3) isToolbar()
looks like it will be called again soon when the component is visually opened
anyway.

Checking in MultiViewPeer.java;
/cvs/core/multiview/src/org/netbeans/core/multiview/MultiViewPeer.java,v  <-- 
MultiViewPeer.java
new revision: 1.21; previous revision: 1.20
done
Comment 3 Jesse Glick 2005-11-04 20:49:57 UTC
Created attachment 26641 [details]
Binary patch: save as ${nbinstall}/platform6/modules/patches/org-netbeans-core-multiview/68122.jar
Comment 4 David Simonek 2005-11-07 13:09:13 UTC
*** Issue 68210 has been marked as a duplicate of this issue. ***
Comment 5 Tomas Bilka 2006-01-20 11:42:57 UTC
verified
Comment 6 Marian Mirilovic 2006-01-20 11:57:40 UTC
v