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 207569 - NullPointerException at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponents
Summary: NullPointerException at com.sun.java.swing.plaf.windows.WindowsFileChooserUI....
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Directory Chooser (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL: http://praxisintermedia.wordpress.com...
Keywords:
: 213381 215928 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-20 14:06 UTC by HiroKws
Modified: 2012-10-30 02:34 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 184605


Attachments
stacktrace (8.04 KB, text/plain)
2012-01-20 14:06 UTC, HiroKws
Details

Note You need to log in before you can comment on or make changes to this bug.
Description HiroKws 2012-01-20 14:06:38 UTC
Build: NetBeans IDE 7.1 (Build 201112071828)
VM: Java HotSpot(TM) Client VM, 21.1-b02, Java(TM) SE Runtime Environment, 1.7.0_01-b08
OS: Windows XP

User Comments:
HiroKws: Try HTML outpout and spcified output file




Stacktrace: 
java.lang.NullPointerException
   at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponents(WindowsFileChooserUI.java:306)
   at javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserUI.java:173)
   at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(WindowsFileChooserUI.java:150)
   at javax.swing.JComponent.setUI(JComponent.java:664)
   at javax.swing.JFileChooser.updateUI(JFileChooser.java:1803)
   at javax.swing.JFileChooser.setup(JFileChooser.java:370)
Comment 1 HiroKws 2012-01-20 14:06:40 UTC
Created attachment 115119 [details]
stacktrace
Comment 2 HiroKws 2012-01-20 21:59:30 UTC
Maybe this came from a plugin 'ez-on-da-ice'. After uninstall this, file chooser worked correctly.
Comment 3 NeilCSmith 2012-07-11 14:15:22 UTC
This is called by a bug in o.n.swing.dirchooser  This module caches the first installed UI for JFileChooser, and doesn't respond to look and feel changes later.  On Java 7 / Windows 7, the DelegatingChooserUI continues trying to use the WindowsFileChooserUI despite the look and feel being replaced.  On Java 7 this causes a NPE, though not with Java 6.

Workarounds are to set '--laf Metal' or '-J-Dstandard-file-chooser=true' in the .conf file.

Noticed this in Praxis which uses NimROD look and feel, just like ez-on-da-ice.
Comment 4 markiewb 2012-07-22 18:04:49 UTC
Added link to original blog post...
Comment 5 Ondrej Vrabec 2012-09-14 11:31:30 UTC
can you describe steps to reproduce this?
Comment 6 Ondrej Vrabec 2012-10-23 17:56:32 UTC
If you know how to reproduce this in 7.2 or a current dev build preferably, please reopen with steps to reproduce
Comment 7 Marian Mirilovic 2012-10-26 14:45:57 UTC
Ondro, see the page on published URL .

Also want to say that there are similar issues like this:
issue 213381
issue 215928
Comment 8 Ondrej Vrabec 2012-10-26 14:57:43 UTC
*** Bug 213381 has been marked as a duplicate of this bug. ***
Comment 9 Ondrej Vrabec 2012-10-26 14:58:25 UTC
*** Bug 215928 has been marked as a duplicate of this bug. ***
Comment 10 Ondrej Vrabec 2012-10-29 15:36:28 UTC
i'll try to fix it although i am unable to reproduce in 7.2 or in dev build
Comment 11 Ondrej Vrabec 2012-10-29 15:39:40 UTC
fix: http://hg.netbeans.org/core-main/rev/6cc12e03cddc
Comment 12 Quality Engineering 2012-10-30 02:34:29 UTC
Integrated into 'main-golden', will be available in build *201210300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/6cc12e03cddc
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #207569 - NullPointerException at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponents
delegate to the proper (last set) file chooser ui