1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* fix NPE issues

This commit is contained in:
Reinhard Pointner 2014-07-19 07:05:53 +00:00
parent 33787055a5
commit 2cdd0ddc17

View File

@ -54,10 +54,14 @@ public class MetaAttributes {
public Object getObject() {
try {
return JsonReader.jsonToJava(metaAttributeView.get(METADATA_KEY));
String jsonObject = metaAttributeView.get(METADATA_KEY);
if (jsonObject != null && jsonObject.length() > 0) {
return JsonReader.jsonToJava(jsonObject);
}
} catch (IOException e) {
throw new RuntimeException(e);
}
return null;
}
public void clear() {