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 10406 - Nullpointer exception in BrowserModel.serviceAdded()
Summary: Nullpointer exception in BrowserModel.serviceAdded()
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: jini (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-03-16 14:49 UTC by billpittore
Modified: 2001-07-20 20:33 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 billpittore 2001-03-16 14:50:00 UTC
If the service has a null attribute then line 431 causes an exception:
   addEntryClass(item.attributeSets[i].getClass(), item.serviceID

For whatever reason, many services that show up on our network cause
this problem.

I fixed my version by adding a conditional:

if (item.attributeSets[i] != null)
    addEntryClass(item.attributeSets[i].getClass(), item.serviceID);

Possibly need the same fix in serviceRemoved() as well.
Comment 1 _ pkuzel 2001-03-16 17:55:42 UTC
Thanks. May it would be worthy to investigate why an attribute has null value
because null has reserved meaning in Entry concept. I guess deserialization
problem.

Repository revision: 1.10
Comment 2 Jan Chalupa 2001-05-06 07:59:25 UTC
Target milestone -> 3.3