1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Can't be null.

This commit is contained in:
Cedric Beust 2016-07-18 01:30:05 -08:00
parent 20b37cfc88
commit 4353e438a1

View file

@ -196,7 +196,7 @@ class AetherDependency(val artifact: Artifact): IClasspathDependency, Comparable
CompletedFuture(td!!.root.artifact.file)
} else {
val resolved = aether.resolve(artifact)
if (resolved != null && resolved.size > 0) {
if (resolved.size > 0) {
CompletedFuture(resolved[0].artifact.file)
} else {
CompletedFuture(File("DONOTEXIST")) // will be filtered out