Skip to content

Commit f63ecd5

Browse files
committed
Fix potential NPE race condition
1 parent 9193d97 commit f63ecd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-shell/src/main/groovy/org/grails/cli/gradle/GradleUtil.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class GradleUtil {
7474
if (preparedConnection != null) {
7575
try {
7676
Thread.start {
77-
preparedConnection.close()
77+
preparedConnection?.close()
7878
}.join(2000)
7979
} catch (Throwable e) {
8080
}

0 commit comments

Comments
 (0)