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 63293 - NullPointerException at javax.swing.border.EmptyBorder.<init>(EmptyBorder.java:54)
Summary: NullPointerException at javax.swing.border.EmptyBorder.<init>(EmptyBorder.jav...
Status: REOPENED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: All Windows 7 x64
: P4 blocker (vote)
Assignee: David Simonek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-30 05:12 UTC by viulian
Modified: 2011-02-17 07:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
the message.log from the 4.1/var/log directory. (161.70 KB, text/plain)
2005-08-30 05:20 UTC, viulian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description viulian 2005-08-30 05:12:46 UTC
Hi!

I am running Windows XP SP1.. My Netbeans 4.1 crashes every time that I try to
open it IF i am using a particular Windows theme (which I will detail in a bit).
If I switch back to the normal Windows themes (such as the XP theme, or the
Windows Classic Theme), everything works great.

Deciding to get my desktop a facelift, I have applied the UXTheme MultiPatcher
4.0 (I got it from here:
http://www.softpedia.com/get/System/OS-Enhancements/UXTheme-MultiPatcher.shtml )
as well as installing a theme called "Minimalistic", which I got from here:
http://www.deviantart.com/deviation/15254490/ . I think that this theme has
_some_ windows border missing, or with zero size - thus netbeans crashes while
tring to draw itself..

My System information is this:

>System Info: 
  Product Version       = NetBeans IDE 4.1 (Build 200505031930)
  Operating System      = Windows XP version 5.1 running on x86
  Java; VM; Vendor      = 1.5.0_02; Java HotSpot(TM) Client VM 1.5.0_02-b09; Sun
Microsystems Inc.
  Java Home             = C:\Program Files\Java\jdk1.5.0_02\jre
  System Locale; Encod. = en_US (nb); Cp1252


My observation is that beside Netbeans, some of the java applications I have
also fail to work while I activate the theme above, so I guess this is an issue
of the JDK - but I would like to contribute to the open source community, and
help Netbeans developpment :)

I have attached the exeption I get below:

java.lang.NullPointerException
	at javax.swing.border.EmptyBorder.<init>(EmptyBorder.java:54)
	at
com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRenderer.getTableCellRendererComponent(WindowsTableHeaderUI.java:120)
	at
javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(BasicTableHeaderUI.java:387)
	at
javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight(BasicTableHeaderUI.java:421)
	at
javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(BasicTableHeaderUI.java:447)
	at
javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(BasicTableHeaderUI.java:478)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1582)
	at javax.swing.ViewportLayout.preferredLayoutSize(ViewportLayout.java:78)
	at java.awt.Container.preferredSize(Container.java:1558)
	at java.awt.Container.getPreferredSize(Container.java:1543)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1584)
	at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:702)
	at java.awt.Container.layout(Container.java:1401)
	at java.awt.Container.doLayout(Container.java:1390)
	at java.awt.Container.validateTree(Container.java:1473)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validate(Container.java:1448)
	at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:379)
[catch] at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:113)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 viulian 2005-08-30 05:20:22 UTC
Created attachment 24333 [details]
the message.log from the 4.1/var/log directory.
Comment 2 Jan Chalupa 2005-09-06 12:16:14 UTC
Thanks for the report. There is no NB code involved in the stack trace, so it
really looks like a JDK vs. the custom L&F/theme issue. Nothing to be done in
NetBeans, I'm afraid.
Comment 3 Marian Mirilovic 2005-12-20 16:17:24 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. 

Thanks in advance.
Comment 4 leefs 2011-02-17 07:02:41 UTC
This problem occurs with java 1.5.0_07-b03 on Windows 7 (x64) when using system look and feel (UIManager.getSystemLookAndFeelClassName()) where it is using com.sun.java.swing.plaf.windows.XPStyle. It is not a Netbeans issue.

The null insets parameter is returned by skin.getContentMargin() at com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRenderer.getTableCellRendererComponent(WindowsTableHeaderUI.java:120) which returns the result of a lookup for Skin category.sizemargins. I suspect there is a configuration setting somewhere for this, but don't know where to look.

Some system properties:
Java(TM) 2 Runtime Environment, Standard Edition
C:\Program Files (x86)\Java\jdk1.5.0_07\jre\bin
1.5.0_07-b03
Java HotSpot(TM) Client VM

Not being a java expert, and having just joined this forum, I hope it's ok to reopen this issue here. I've been searching for a solution online for some time.

I would really like to use the system look & feel, and not use the newer JVMs.