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 - NPE from LayoutInterval.isParentOf when placing label
Summary: NPE from LayoutInterval.isParentOf when placing label
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-22 11:11 UTC by Jiri Prox
Modified: 2005-09-22 15:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE (2.03 KB, text/plain)
2005-09-22 11:12 UTC, Jiri Prox
Details
screenshot (55.71 KB, image/png)
2005-09-22 11:13 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
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