Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366337 - Possible null pointer exception on ant
Summary: Possible null pointer exception on ant
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 4.2   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 3.8 M5   Edit
Assignee: Michael Rennie CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2011-12-11 12:38 EST by Asif Chowdhury CLA
Modified: 2011-12-12 12:44 EST (History)
1 user (show)

See Also:


Attachments
Patch to add null check. (738 bytes, patch)
2011-12-11 12:41 EST, Asif Chowdhury CLA
Michael_Rennie: iplog+
Michael_Rennie: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.