summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@opera.com>2023-01-17 12:24:47 +0100
committerJoel Klinghed <the_jk@opera.com>2023-01-17 12:24:47 +0100
commitc1a56a0ea4c2497ab79c8622dc67463f6dd7fdc3 (patch)
treedcb30bfbc7c06c457f2f1359c49162bfd65bb082 /src
parentd8aaa74d9927f7390a32a0b7211d78859d565607 (diff)
Allow for bootstrapClasspath or bootClasspath to be null
Diffstat (limited to 'src')
-rw-r--r--src/main/groovy/FlycheckAndroidJavaTask.groovy6
1 files 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 '***'