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

Summary: LAYOUT: centering elements causes NullPointerException
Product: guibuilder Reporter: belkorin <belkorin>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: MackSix
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows Vista   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 136425    
Attachments: Sample project
log file

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 ***