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 153994 - NPE after moving jpanel into new package
Summary: NPE after moving jpanel into new package
Status: RESOLVED DUPLICATE of bug 153953
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-27 10:05 UTC by Jiri Vagner
Modified: 2009-07-17 07:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
npe.jpg (133.71 KB, image/jpeg)
2008-11-27 10:06 UTC, Jiri Vagner
Details
exc.txt (2.22 KB, text/plain)
2008-11-27 10:08 UTC, Jiri Vagner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Vagner 2008-11-27 10:05:17 UTC
Steps to reproduce:
 - create java app project
 - add new package
 - add jframe form and jpanel form
 - select both files in project tree and d&d into new package
 - push refactor button > see the screenshot


Product Version: NetBeans IDE 6.5 (Build 200811100001)
Java: 1.6.0_10-rc2; Java HotSpot(TM) Client VM 11.0-b15
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)


java.lang.NullPointerException
        at org.netbeans.modules.form.FormLAF.setUseDesignerDefaults(FormLAF.java:446)
[catch] at org.netbeans.modules.form.ComponentLayer$DesignerPanel.paint(ComponentLayer.java:186)
        at javax.swing.JComponent.paintChildren(JComponent.java:864)
        at javax.swing.JComponent.paint(JComponent.java:1036)
....
Comment 1 Jiri Vagner 2008-11-27 10:06:05 UTC
Workaround: Close the jpanel file and open it again.
Comment 2 Jiri Vagner 2008-11-27 10:06:57 UTC
Created attachment 74218 [details]
npe.jpg
Comment 3 Jiri Vagner 2008-11-27 10:08:42 UTC
Created attachment 74219 [details]
exc.txt
Comment 4 Jiri Vagner 2008-12-08 12:42:00 UTC
Reproducible
Comment 5 Jan Stola 2009-07-17 07:18:00 UTC

*** This issue has been marked as a duplicate of 153953 ***