Commit 74676e99 authored by Andrew Twyman's avatar Andrew Twyman Committed by GitHub

Merge pull request #274 from konovalov-aleks/fix_crash

Fixed crash when in-file-list or out-file-list path is unqualified
parents ddcf5bb2 5f37cfe2
......@@ -241,7 +241,8 @@ object Main {
// Parse IDL file.
System.out.println("Parsing...")
val inFileListWriter = if (inFileListPath.isDefined) {
createFolder("input file list", inFileListPath.get.getParentFile)
if (inFileListPath.get.getParentFile != null)
createFolder("input file list", inFileListPath.get.getParentFile)
Some(new BufferedWriter(new FileWriter(inFileListPath.get)))
} else {
None
......@@ -271,7 +272,8 @@ object Main {
System.out.println("Generating...")
val outFileListWriter = if (outFileListPath.isDefined) {
createFolder("output file list", outFileListPath.get.getParentFile)
if (outFileListPath.get.getParentFile != null)
createFolder("output file list", outFileListPath.get.getParentFile)
Some(new BufferedWriter(new FileWriter(outFileListPath.get)))
} else {
None
......
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