Fix NPE
This commit is contained in:
parent
04f5a62749
commit
d36c033d92
@ -84,6 +84,10 @@ public class MetaAttributes {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Object toObject(String json) {
|
public static Object toObject(String json) {
|
||||||
|
if (json == null || json.isEmpty()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
Map<String, Object> options = new HashMap<String, Object>();
|
Map<String, Object> options = new HashMap<String, Object>();
|
||||||
options.put(JsonReader.TYPE_NAME_MAP, JSON_TYPE_MAP);
|
options.put(JsonReader.TYPE_NAME_MAP, JSON_TYPE_MAP);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user