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 120978

Summary: Guarantee default values for Nb.Explorer.Folder*
Product: platform Reporter: Andrei Badea <abadea>
Component: Window SystemAssignee: issues@platform <issues>
Status: NEW ---    
Severity: blocker CC: mslama, saubrecht
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Andrei Badea 2007-11-02 15:27:21 UTC
Currently modules using Nb.Explorer.Folder* need to check for null, perhaps also try Tree.icon, and if that is null too
then bundle a default icon image. See e.g. UIUtil in apisupport/project for an example.

This is quite clumsy and has performance impact. Suggest ensuring that Nb.Explorer.Folder* have non-null values on all
L&F's. This might be the case even today, but it needs to be stated clearly in the documentation.

I can help with the implementation and/or write a test for it.
Comment 1 Andrei Badea 2007-11-02 17:39:08 UTC
BTW it doesn't seem to be the case for the Ocean L&F.