* fix NPE issues
This commit is contained in:
parent
33787055a5
commit
2cdd0ddc17
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue