1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -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 {
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
}
if (result == null) {