Commit 5f37cfe2 authored by Aleksey Konovalov's avatar Aleksey Konovalov

Fixed crash in the case where the parameters "--list-in-files" and...

Fixed crash in the case where the parameters "--list-in-files" and "--list-out-files" contain only the names of files
parent ddcf5bb2
......@@ -241,6 +241,7 @@ object Main {
// Parse IDL file.
System.out.println("Parsing...")
val inFileListWriter = if (inFileListPath.isDefined) {
if (inFileListPath.get.getParentFile != null)
createFolder("input file list", inFileListPath.get.getParentFile)
Some(new BufferedWriter(new FileWriter(inFileListPath.get)))
} else {
......@@ -271,6 +272,7 @@ object Main {
System.out.println("Generating...")
val outFileListWriter = if (outFileListPath.isDefined) {
if (outFileListPath.get.getParentFile != null)
createFolder("output file list", outFileListPath.get.getParentFile)
Some(new BufferedWriter(new FileWriter(outFileListPath.get)))
} else {
......
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