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 64883

Summary: NPE from LayoutInterval.isParentOf when placing label
Product: guibuilder Reporter: Jiri Prox <jiriprox>
Component: Natural LayoutAssignee: issues@guibuilder <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: NPE
screenshot

Description Jiri Prox 2005-09-22 11:11:23 UTC
NB 5.0 dev build 20050922
form module form 05-09-22 11:30 

NPE is thrown when JLabel is placed to the very top edge of the JPanel

Steps to reproduce:
1) create new form
2) add JPanel
3) add JLabel into top left corner of the JPanel 
   (see the screenshot)

java.lang.NullPointerException
	at
org.netbeans.modules.form.layoutdesign.LayoutInterval.isParentOf(LayoutInterval.java:420)
	at
org.netbeans.modules.form.layoutdesign.LayoutFeeder.addToGroup(LayoutFeeder.java:817)

Marking as P1 bacause it is very common scanario and it's even part of form
tutorial.
Comment 1 Jiri Prox 2005-09-22 11:12:30 UTC
Created attachment 25055 [details]
NPE
Comment 2 Jiri Prox 2005-09-22 11:13:15 UTC
Created attachment 25056 [details]
screenshot
Comment 3 Tomas Pavek 2005-09-22 12:21:38 UTC
Stupid bug (typo) caused by previous commit. Now fixed.
Comment 4 Marek Grummich 2005-09-22 13:56:17 UTC
Seems to be ok in the build 200509211800 + org-netbeans-modules-form.jar
(050922_1, size 3294859). Jirko, can you verify it too?
Comment 5 Jiri Prox 2005-09-22 15:18:32 UTC
Ok, now it works