* fix NPE issues

This commit is contained in:
Reinhard Pointner 2014-07-19 07:05:53 +00:00
parent 33787055a5
commit 2cdd0ddc17
1 changed files with 5 additions and 1 deletions

View File

@ -54,10 +54,14 @@ public class MetaAttributes {
public Object getObject() { public Object getObject() {
try { 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) { } catch (IOException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
return null;
} }
public void clear() { public void clear() {