From c1a56a0ea4c2497ab79c8622dc67463f6dd7fdc3 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 17 Jan 2023 12:24:47 +0100 Subject: Allow for bootstrapClasspath or bootClasspath to be null --- src/main/groovy/FlycheckAndroidJavaTask.groovy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/groovy/FlycheckAndroidJavaTask.groovy b/src/main/groovy/FlycheckAndroidJavaTask.groovy index 582b007..046f6ba 100644 --- a/src/main/groovy/FlycheckAndroidJavaTask.groovy +++ b/src/main/groovy/FlycheckAndroidJavaTask.groovy @@ -43,9 +43,11 @@ class FlycheckAndroidJavaTask extends DefaultTask { try { def cp = compile.classpath.asPath def bootcp = '' - if (compile.options.hasProperty('bootClasspath')) { + if (compile.options.hasProperty('bootClasspath') && + compile.options.bootClasspath != null) { bootcp = compile.options.bootClasspath - } else if (compile.options.hasProperty('bootstrapClasspath')) { + } else if (compile.options.hasProperty('bootstrapClasspath') && + compile.options.bootstrapClasspath != null) { bootcp = compile.options.bootstrapClasspath.asPath } println '***' -- cgit v1.2.3-70-g09d2