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 13635 - NPE after add JSplitPane to JFrame with JInternalFrame.
Summary: NPE after add JSplitPane to JFrame with JInternalFrame.
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: -FFJ-
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Pavek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-07-16 17:06 UTC by Marian Mirilovic
Modified: 2002-02-05 13:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NullPointerException (2.38 KB, text/plain)
2001-07-16 17:07 UTC, Marian Mirilovic
Details
NPE 2, JSplitPane to JScrollPane (2.66 KB, text/plain)
2001-08-21 15:21 UTC, Marian Mirilovic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2001-07-16 17:06:51 UTC
[nb_dev](20010716), [jdk1.3.1](rc1)
Steps to reproduce:
- open/create JFrame
- add GridBagLayout from Component Palette
- recursively add all Swing components to frame ( 20-th or 25-th added
component) cause NullPointerException(attachment)
Comment 1 Marian Mirilovic 2001-07-16 17:07:09 UTC
Created attachment 1881 [details]
NullPointerException
Comment 2 Tomas Pavek 2001-07-16 17:27:03 UTC
So which component causes the exception?
Comment 3 Marian Mirilovic 2001-07-17 15:14:08 UTC
JSplitPane with JInternalFrame I think.

If you add to JFrame JInternalFrame and after add JSplitPane you
obtain NPE. 
If you try add JInternalFrame and other component - exception isn't
rised.
If you try add JSplitPane and other component - exception isn't rised.

It's independent from Layout.

This not happens if you add first JSplitPane and second
JInternalFrame, but if you now change layout or select JInternalFrame
in ComponentInspector you obtain the same exception.
Comment 4 Marian Mirilovic 2001-08-13 08:52:46 UTC
The same behaviour in [pilsen](010810), this is reason for change
version to FFJ3.0 ea.
Comment 5 Marian Mirilovic 2001-08-21 15:20:47 UTC
This cause JSplitPane, if you add JSplitPane to JScrollPane you obtain
NPE(attachment2 [details]) again.
Comment 6 Marian Mirilovic 2001-08-21 15:21:51 UTC
Created attachment 2245 [details]
NPE 2, JSplitPane to JScrollPane
Comment 7 Tomas Pavek 2001-11-01 16:48:03 UTC
I cannot reproduce the second problem - with JScrollPane - in current 
dev builds. The case with JInternalFrame has been fixed.

MetaComponentCreator.java rev. 1.14
Comment 8 Marian Mirilovic 2001-11-05 11:06:11 UTC
verified in [nb_dev](20011102)
Comment 9 Marian Mirilovic 2002-01-29 16:18:59 UTC
verified in [FFJ3.0]+[JP3.2] with [jdk1.4](91) on [Solaris-CDE](5.8) && [Win2K]
Comment 10 Marian Mirilovic 2002-02-05 13:55:38 UTC
fix in [JP3.2] was removed because causes high priority issue 20116