mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
NPE work.
This commit is contained in:
parent
6a5c71ecea
commit
025f2de38e
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue