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

Fix parent bug.

This commit is contained in:
Cedric Beust 2016-02-22 20:43:21 -08:00
parent e5db61ebd2
commit 1bc3b0cad8

View file

@ -215,7 +215,7 @@ class KFiles {
fun findDotDir(startDir: File) : File { fun findDotDir(startDir: File) : File {
var result = startDir var result = startDir
while (result != null && ! File(result, KOBALT_DOT_DIR).exists()) { while (result != null && result.parentFile != null && ! File(result, KOBALT_DOT_DIR).exists()) {
result = result.parentFile result = result.parentFile
} }
if (result == null) { if (result == null) {