Added another error catcher

This commit is contained in:
sekwah 2018-01-23 06:07:04 +00:00 committed by Sekwah
parent 3a5c6d88cb
commit 30cec4e7f6

View File

@ -76,6 +76,10 @@ public class DataStorage {
if (!outFile.exists() || overwrite) {
try {
InputStream inputStream = DataStorage.class.getClassLoader().getResourceAsStream(fileLoc);
if(inputStream == null) {
return false;
}
FileOutputStream outStream = new FileOutputStream(outFile);
byte[] buf = new byte[1024];