mirror of https://github.com/dspinellis/UMLGraph
Fix InvocationTargetException.
Reported by: George Gousios
This commit is contained in:
parent
d852aea76f
commit
6839e3c683
|
|
@ -986,7 +986,8 @@ class ClassGraph {
|
|||
else
|
||||
file = new File(opt.outputFileName);
|
||||
// make sure the output directory are there, otherwise create them
|
||||
if(!file.getParentFile().exists())
|
||||
if (file.getParentFile() != null
|
||||
&& !file.getParentFile().exists())
|
||||
file.getParentFile().mkdirs();
|
||||
FileOutputStream fos = new FileOutputStream(file);
|
||||
|
||||
|
|
|
|||
|
|
@ -986,7 +986,8 @@ class ClassGraph {
|
|||
else
|
||||
file = new File(opt.outputFileName);
|
||||
// make sure the output directory are there, otherwise create them
|
||||
if(!file.getParentFile().exists())
|
||||
if (file.getParentFile() != null
|
||||
&& !file.getParentFile().exists())
|
||||
file.getParentFile().mkdirs();
|
||||
FileOutputStream fos = new FileOutputStream(file);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue