Fixed UUID Utility
This commit is contained in:
parent
c36d76c19c
commit
f9137ffff9
|
@ -18,7 +18,10 @@ public class UUIDUtility {
|
||||||
|
|
||||||
public static UUID getUUID(JsonNode jsonNode){
|
public static UUID getUUID(JsonNode jsonNode){
|
||||||
if(jsonNode.has(IdentifiableElement.ID_PROPERTY)) {
|
if(jsonNode.has(IdentifiableElement.ID_PROPERTY)) {
|
||||||
return UUID.fromString(jsonNode.get(IdentifiableElement.ID_PROPERTY).asText());
|
JsonNode jsonNodeID = jsonNode.get(IdentifiableElement.ID_PROPERTY);
|
||||||
|
if(jsonNodeID!=null && jsonNodeID.isTextual()) {
|
||||||
|
return UUID.fromString(jsonNodeID.asText());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue