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 107522 - LAYOUT: centering elements causes NullPointerException
Summary: LAYOUT: centering elements causes NullPointerException
Status: RESOLVED DUPLICATE of bug 91892
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 blocker with 1 vote (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 107790 (view as bug list)
Depends on:
Blocks: 136425
  Show dependency tree
 
Reported: 2007-06-20 21:44 UTC by belkorin
Modified: 2012-06-15 14:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample project (13.47 KB, application/octet-stream)
2007-06-20 21:45 UTC, belkorin
Details
log file (161.39 KB, text/plain)
2007-06-20 21:46 UTC, belkorin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description belkorin 2007-06-20 21:44:10 UTC
trying to center the three elements inside of the JPanel in the JFrame in the attached project causes the editor to
crash with a null pointer exception.

Attached are the project and the messages.log file
Comment 1 belkorin 2007-06-20 21:45:00 UTC
Created attachment 44111 [details]
Sample project
Comment 2 belkorin 2007-06-20 21:46:34 UTC
Created attachment 44112 [details]
log file
Comment 3 Tomas Pavek 2007-07-12 13:18:58 UTC
*** Issue 107790 has been marked as a duplicate of this issue. ***
Comment 4 asenk 2011-10-04 10:15:58 UTC
Still Valid:
Product Version: NetBeans IDE Dev (Build 201110030601)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Linux version 2.6.38-11-generic running on i386; UTF-8; en_US (nb)
Comment 5 MackSix 2011-10-19 08:05:44 UTC
Any time you have any 3 components like this and one or more is snapped to the Indentation Alignment, using Center Horizontally, Align Left in Column or Align Right in Column.

If you just slide the lower label (jLabel10) over so it is not snapped to the Indentation Alignment of  jLabel9, it does not throw the exception.
Comment 6 MackSix 2011-10-19 08:09:34 UTC
Actually this throws this assertion error now.

http://statistics.netbeans.org/analytics/exception.do?id=533903
Comment 7 Tomas Pavek 2012-06-15 14:29:03 UTC

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