Skip to content

Commit

Permalink
Merge pull request #2164 from ckipp01/nullPointer
Browse files Browse the repository at this point in the history
Account for possible null value in ScalaTarget's baseDirectory
  • Loading branch information
ckipp01 authored Oct 29, 2020
2 parents 17ed475 + 57cf7d1 commit 85ff9dc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ case class ScalaTarget(

def targetroot: AbsolutePath = scalac.targetroot(scalaVersion)

def baseDirectory: String = info.getBaseDirectory()
def baseDirectory: String = {
val baseDir = info.getBaseDirectory()
if (baseDir != null) baseDir else ""
}

def fullClasspath: ju.List[Path] = {
scalac.getClasspath().map(_.toAbsolutePath.toNIO)
Expand Down

0 comments on commit 85ff9dc

Please sign in to comment.