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

Bug 368299

Summary: [TMF] Empty event constructor can cause NPE
Product: z_Archived Reporter: Patrick Tasse <patrick.tasse>
Component: LinuxToolsAssignee: Francois Chouinard <fchouinard>
Status: CLOSED FIXED QA Contact: Francois Chouinard <fchouinard>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Patrick Tasse CLA 2012-01-10 17:05:49 EST
When the empty contructor for TmfEvent is used, it is possible for some of the instance variables to be null. This can cause a NullPointerException in the methods hashCode(), equals(), clone() and in the copy constructor.

The solution is to protect these methods against null instance variables. This also applies for the equals() method in classes TmfEventContent, TmfEventReference and TmfEventSource.
Comment 1 Patrick Tasse CLA 2012-01-10 17:22:16 EST
Pushed to master branch.

commit a67669b6a164efe08037e92a670215fdeda231e1
Comment 2 Francois Chouinard CLA 2012-03-26 14:07:44 EDT
Delivered in 0.10.0