Permalink
Browse files

Fixed NullPointerException case on Table init with relative file path.

Can occur for example when running dbtest with relative test table file
name (wihout explicit parent folder).
  • Loading branch information...
luccioman committed Jan 29, 2018
1 parent 28883d8 commit 6cd3847d0acc2a1b75b1948d6b5b6795d797908c
Showing with 3 additions and 1 deletion.
  1. +3 −1 source/net/yacy/kelondro/table/Table.java
@@ -110,7 +110,9 @@ public Table(
// make new file
freshFile = true;
FileOutputStream fos = null;
tablefile.getParentFile().mkdirs();
if(tablefile.getParentFile() != null) {
tablefile.getParentFile().mkdirs();
}
try {
fos = new FileOutputStream(tablefile);
} catch (final FileNotFoundException e) {

0 comments on commit 6cd3847

Please sign in to comment.