Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368299 - [TMF] Empty event constructor can cause NPE
Summary: [TMF] Empty event constructor can cause NPE
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: LinuxTools (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Francois Chouinard CLA
QA Contact: Francois Chouinard CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-10 17:05 EST by Patrick Tasse CLA
Modified: 2022-01-13 14:53 EST (History)
0 users

See Also:


Attachments

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