Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366337

Summary: Possible null pointer exception on ant
Product: [Eclipse Project] Platform Reporter: Asif Chowdhury <asifrc>
Component: AntAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: Michael_Rennie
Version: 4.2Keywords: contributed
Target Milestone: 3.8 M5   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Patch to add null check. Michael_Rennie: iplog+, Michael_Rennie: review+

Description Asif Chowdhury CLA 2011-12-11 12:38:42 EST
Build Identifier: 

On org.eclipse.ant.core the Property class may throw a possible null pointer exception in the equals class. No null check for the variable other.

Reproducible: Didn't try
Comment 1 Asif Chowdhury CLA 2011-12-11 12:41:25 EST
Created attachment 208226 [details]
Patch to add null check.

Proposed patch to fix possible null pointer exception on org.eclipse.ant.core.Property. Added a null check for the variable other in the equals method.
Comment 2 Michael Rennie CLA 2011-12-12 12:44:49 EST
Pushed the patch + a couple of regression tests to:

http://git.eclipse.org/c/platform/eclipse.platform.git/commit/?id=793e51a6cac4661dbafcf2e18217a09f36b125da

Thanks for the patch asifrc.