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

Summary: Nullpointer exception in BrowserModel.serviceAdded()
Product: obsolete Reporter: billpittore <billpittore>
Component: jiniAssignee: issues@obsolete <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

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