Commit 9a4fa988 authored by Peter van 't Hof's avatar Peter van 't Hof

Fixed nullpointer

parent 98890af0
......@@ -161,10 +161,10 @@ object BiopetQScript {
def checkOutputDir(outputDir: File): Unit = {
// Sanity checks
require(outputDir.getParentFile.canRead, s"No premision to read parent of outputdir: ${outputDir.getParentFile}")
require(outputDir.getParentFile.canWrite, s"No premision to write parent of outputdir: ${outputDir.getParentFile}")
require(outputDir.getAbsoluteFile.getParentFile.canRead, s"No premision to read parent of outputdir: ${outputDir.getParentFile}")
require(outputDir.getAbsoluteFile.getParentFile.canWrite, s"No premision to write parent of outputdir: ${outputDir.getParentFile}")
outputDir.mkdir()
require(outputDir.canRead, s"No premision to read outputdir: $outputDir")
require(outputDir.canWrite, s"No premision to write outputdir: $outputDir")
require(outputDir.getAbsoluteFile.canRead, s"No premision to read outputdir: $outputDir")
require(outputDir.getAbsoluteFile.canWrite, s"No premision to write outputdir: $outputDir")
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment