[bugfix] Small modification to property loader
diff --git a/src/main/java/de/ids_mannheim/korap/KorapIndex.java b/src/main/java/de/ids_mannheim/korap/KorapIndex.java
index edeb8de..d943d76 100644
--- a/src/main/java/de/ids_mannheim/korap/KorapIndex.java
+++ b/src/main/java/de/ids_mannheim/korap/KorapIndex.java
@@ -139,9 +139,15 @@
URL file = getClass().getResource("/index.properties");
if (file != null) {
- InputStream fr = new FileInputStream(file.getFile());
- prop.load(fr);
- this.version = prop.getProperty("lucene.index.version");
+ String f = file.getFile();
+ try {
+ InputStream fr = new FileInputStream(f);
+ prop.load(fr);
+ this.version = prop.getProperty("lucene.index.version");
+ }
+ catch (FileNotFoundException e) {
+ log.warn(e.getLocalizedMessage());
+ };
};
};