Skip to content

Commit

Permalink
DependencyResolutionVerifier: Prevent NullPointerException when readi…
Browse files Browse the repository at this point in the history
…ng safe tasks
  • Loading branch information
rpalcolea committed Jan 14, 2020
1 parent fe31b62 commit 7833b2f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class DependencyResolutionVerifier {
: task.owningProject // the method name as of Gradle 6.0
}
.find { proj, tasksForProj -> proj == project }
.value
.collect { it -> it.task }
?.value
?.collect { it -> it.task }
} else {
safeTasks = tasks.collect { it -> it.task }
}
Expand Down

0 comments on commit 7833b2f

Please sign in to comment.