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 34156 - NPE From Registry API
Summary: NPE From Registry API
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC All
: P2 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-04 16:19 UTC by Petr Hrebejk
Modified: 2008-12-22 17:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Hrebejk 2003-06-04 16:19:43 UTC
When the undelying filesystem fires Attribute
change with the attrName
set to null. Registry API will throw NPE. This
shouldn't happen as
the FS doc allows to fire such events. Registry
API should handle this
case gracefully.

java.lang.NullPointerException at
org.netbeans.core.registry.Listener.fileAttributeChanged(Listener.java:60)
Comment 1 David Konecny 2003-06-04 16:48:41 UTC
Did not know that attrName can be null. I will fix it tomorrow.
Comment 2 David Konecny 2003-06-05 10:04:37 UTC
Fixed in:

Checking in openide/registry/manifest.mf;
new revision: 1.3; previous revision: 1.2
Checking in openide/registry/api/apichanges.xml;
new revision: 1.3; previous revision: 1.2
Checking in
openide/registry/src/org/netbeans/api/registry/AttributeEvent.java
new revision: 1.2; previous revision: 1.1
Checking in
openide/registry/src/org/netbeans/api/registry/BindingEvent.java;
new revision: 1.2; previous revision: 1.1
Checking in core/registry/src/org/netbeans/core/registry/Listener.java;
new revision: 1.2; previous revision: 1.1
Comment 3 pzajac 2003-11-11 10:21:22 UTC
David,please create unit. It should be simple.  
Comment 4 pzajac 2003-11-11 10:22:11 UTC
David,please create unit test. 
Comment 5 David Konecny 2003-11-12 09:08:14 UTC
Good point, but will not have time to work on Registry for couple of
weeks.
Comment 6 Jan Chalupa 2004-03-03 18:51:32 UTC
Promo D isssue I guess.
Comment 7 Marian Mirilovic 2005-07-15 07:49:43 UTC
closed