Don't throw exception if file doesn't exist

This commit is contained in:
serso 2016-03-15 21:48:09 +01:00
parent b1bd694a8a
commit fc2ceb4b55

View File

@ -26,6 +26,9 @@ public class FileLoader extends BaseIoLoader {
@Nullable
@Override
protected InputStream getInputStream() throws IOException {
if (!file.exists()) {
return null;
}
return new FileInputStream(file);
}
}