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 190440 - NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutModel.removeInterval
Summary: NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutModel.re...
Status: RESOLVED DUPLICATE of bug 95954
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-19 07:02 UTC by mcseemz
Modified: 2011-02-02 18:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 172637


Attachments
stacktrace (2.96 KB, text/plain)
2010-09-19 07:02 UTC, mcseemz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mcseemz 2010-09-19 07:02:38 UTC
This bug was originally marked as duplicate of bug 118562, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 6.9 (Build 201007282301)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Linux

User Comments:
GUEST: 1. Made panel with some controls
2. Put this panel in another panel
3. Tried to layout it relative to button at the bottom, but get this error

(I'm not native english speaker, so sorry if that doesn't make any sense)

mcseemz: In form view I chose Palette>Choose Bean, then entered the class of my JPanel
Panel showed but with defects in drawing (not all controls drawed completely)
after placing panel it cannot be relocated, as after drag-and-drop it returns to the original placement




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.form.layoutdesign.LayoutModel.removeInterval(LayoutModel.java:337)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.intervalRemoved(LayoutDesigner.java:3814)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.layoutChanged(LayoutDesigner.java:2286)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.access$100(LayoutDesigner.java:60)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner$Listener.layoutChanged(LayoutDesigner.java:2252)
   at org.netbeans.modules.form.layoutdesign.LayoutModel.fireEvent(LayoutModel.java:808)
Comment 1 mcseemz 2010-09-19 07:02:43 UTC
Created attachment 102070 [details]
stacktrace
Comment 2 Exceptions Reporter 2011-01-28 19:16:17 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=172637
Comment 3 Tomas Pavek 2011-02-02 18:32:01 UTC
This is much likely just a special case of bug 95954. There is a design flaw in how additional changes in model after deleting components are performed, which appear when there is more than one view of the GUI form (cloned).

*** This bug has been marked as a duplicate of bug 95954 ***