Added another error catcher

This commit is contained in:
sekwah 2018-01-23 06:07:04 +00:00
parent 0ad9dcdebf
commit b50bd20531

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];