Skip to content

Commit

Permalink
Prevent possible NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Michel Fayard committed Sep 10, 2019
1 parent 182d28e commit 925ad35
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ class DependencyUpdatesTask extends DefaultTask {
resolutionStrategy { ResolutionStrategyWithCurrent strategy ->
strategy.componentSelection { ComponentSelectionRulesWithCurrent selection ->
selection.all { ComponentSelectionWithCurrent current ->
if (filter.reject(current)) {
def isNotNull = current.currentVersion != null && current.candidate.version != null
if (isNotNull && filter.reject(current)) {
current.reject("Rejected by rejectVersionIf ")
}
}
Expand Down

0 comments on commit 925ad35

Please sign in to comment.