Fixed #20 - NPE gets caught when opening a damaged file and info popup

is shown
This commit is contained in:
Brita Keller
2019-12-03 22:19:56 +01:00
parent 52f3f7b348
commit 7b2db09585
3 changed files with 16 additions and 2 deletions

View File

@ -80,6 +80,7 @@ public class TextDbLoader implements IWaveformDbLoader{
.allocateStartSize(64*1024*1024)
.allocateIncrement(64*1024*1024)
.make()
// NPE here --->
parseInput(gzipped?new GZIPInputStream(new FileInputStream(file)):new FileInputStream(file))
calculateConcurrencyIndicees()
return true
@ -87,6 +88,7 @@ public class TextDbLoader implements IWaveformDbLoader{
} catch(EOFException e) {
return true;
} catch(Exception e) {
System.out.println("---->>> Exception caught while loading database. StackTrace following... ");
e.printStackTrace()
}
return false;