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

NPE work.

This commit is contained in:
Cedric Beust 2016-05-07 08:00:42 -07:00
parent 6a5c71ecea
commit 025f2de38e

View file

@ -29,8 +29,8 @@ class BuildFile(val path: Path, val name: String, val realPath: Path = path) {
* @return the absolute directory of this projects' location, assuming the build file is in
* $project/kobalt/src/Build.kt.
*/
val absoluteDir : File get() {
val absoluteDir : File? get() {
log(1, "Current path: $path")
return path.parent.parent.parent.toFile()
return path.parent?.parent?.parent?.toFile()
}
}