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.
Summary: | NullPointerException at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponents | ||
---|---|---|---|
Product: | platform | Reporter: | HiroKws |
Component: | Directory Chooser | Assignee: | Ondrej Vrabec <ovrabec> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | exceptions_reporter, ivo47, mmirilovic, venkatramakkineni |
Priority: | P3 | ||
Version: | 7.1 | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://praxisintermedia.wordpress.com/2012/07/21/npe-hunting/ | ||
Issue Type: | DEFECT | Exception Reporter: | 184605 |
Attachments: | stacktrace |
Description
HiroKws
2012-01-20 14:06:38 UTC
Created attachment 115119 [details]
stacktrace
Maybe this came from a plugin 'ez-on-da-ice'. After uninstall this, file chooser worked correctly. 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. Added link to original blog post... can you describe steps to reproduce this? If you know how to reproduce this in 7.2 or a current dev build preferably, please reopen with steps to reproduce Ondro, see the page on published URL . Also want to say that there are similar issues like this: issue 213381 issue 215928 *** Bug 213381 has been marked as a duplicate of this bug. *** *** Bug 215928 has been marked as a duplicate of this bug. *** i'll try to fix it although i am unable to reproduce in 7.2 or in dev build 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 |