Bug 198268 - Accessing equals() on a null String throws NPE
Summary: Accessing equals() on a null String throws NPE
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: ALF (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Brian Carroll CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-30 10:00 EDT by Ramkumar Venkatraman CLA
Modified: 2010-11-23 14:33 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ramkumar Venkatraman CLA 2007-07-30 10:00:30 EDT
Class: org.eclipse.alf.security.sso.common.http.configuration.ConfigParameter
Method: boolean equals(Object)

If the 'Object' in the input parameter of this method has a null value for 'name', accessing the equals method on it throws NullPointerException.
This exception is not caught.

eg: 
ConfigParameter param= new ConfigParameter("", new Object());
Object obj = new ConfigParameter(); // This object has 'name=null'
boolean result = param.equals(obj);
Comment 1 George Stanchev CLA 2007-10-18 15:14:37 EDT
fixed