gerrit/gerrit-server
David Pursehouse d19d0d307a ReviewerRecommender: Prevent NPE when changeNotes is null
The changeNotes passed into suggestReviewers is possibly null, and
there is a check for this later in the method before attempting to
remove the change owner and existing reviewers from the list of
recommendations.

However the changeNotes was dereferenced to get the changeId to pass
into the plugin provided suggestReviewers method.

The suggestReviewers method annotates changeId as @Nullable, so we
can simply pass null there when changeNotes is null.

Change-Id: I4946b858dac05132cc65ebc6f4966a2fa0b23c11
2018-02-07 21:30:25 +09:00
..
src ReviewerRecommender: Prevent NPE when changeNotes is null 2018-02-07 21:30:25 +09:00
BUILD Don't ship bouncycastle libraries in plugin API 2017-04-07 07:38:04 +02:00