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: | NPE in RootFolderNode.getCustomizer while using Bean Browser | ||
---|---|---|---|
Product: | platform | Reporter: | cnovak <cnovak> |
Component: | -- Other -- | Assignee: | Jesse Glick <jglick> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | issues |
Priority: | P4 | Keywords: | SIMPLEFIX |
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | ide.log file |
Description
cnovak
2003-04-02 02:45:22 UTC
Created attachment 9640 [details]
ide.log file
The problem is that the Node.getCustomizer method is being treated as a bean method that may be freely called. In fact it may be called only when hasCustomizer is true, which in this case it presumably was not - but the Bean Browser does not know that. It just sees a property and tries to display it. I suppose it could be special-cased to suppress the property in this case, but it seems pointless. Note that the Bean Browser does catch exceptions thrown from getters. Here, RootFolderNode is catching its own NPE, reporting it, and returning null. Fixed for 4.0: committed Up-To-Date 1.51 core/src/org/netbeans/core/RootFolderNode.java *** Issue 31947 has been marked as a duplicate of this issue. *** closed |