Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Protect PlaybackManager from null EventCreatedOn
It is possible that Gerrit might return a null eventCreated attribute for some events. This protects the persistence of events from this situation. [FIXED JENKINS-30975]
- Loading branch information
Scott Hebert
committed
Nov 27, 2015
1 parent
3bfe912
commit 7fd0896
Showing
3 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...om/sonyericsson/hudson/plugins/gerrit/trigger/playback/DeserializeEventCreatedOnTest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{"type":"change-restored","change":{"project":"playback-test","branch":"master" | ||
,"id":"Ibafad9613934fdec650d6186dc1021bc2cf5d2f5","number":"654","subject":"Mon Dec 8 20:53:56 EST 2014" | ||
,"owner":{"name":"Scott","email":"scott@company.com","username":"scott" | ||
},"url":"http://localhost:9090/654" | ||
,"commitMessage":"Mon Dec 8 20:53:56 EST 2014\n\nChange-Id: Ibafad9613934fdec650d6186dc1021bc2cf5d2f5\n" | ||
,"status":"NEW"},"patchSet":{"number":"1","revision":"b2b5f7c8fb8f96312d629d4d4f379f34f5b9b651" | ||
,"parents":["6cf2d28cc07d22a49e0e614c7bde0a4e5fd0c8f5"],"ref":"refs/changes/54/654/1" | ||
,"uploader":{"name":"Scott","email":"scott@company.com","username":"scott"} | ||
,"createdOn":1418090036,"author":{"name":"Scott","email":"scott@company.com","username":"scott"} | ||
,"isDraft":false,"sizeInsertions":1,"sizeDeletions":0},"restorer":{"name":"Scott" | ||
,"email":"scott@company.com","username":"scott"}} |