Skip to content

Commit

Permalink
handled the null case in api/ontologies for #9
Browse files Browse the repository at this point in the history
  • Loading branch information
giraygi committed Apr 19, 2024
1 parent 5ef74ec commit e041dac
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ public static String objectToString(JsonElement value) {
} else if(value.isJsonObject()) {
return objectToString(value.getAsJsonObject().get("value"));
} else {
return value.getAsString();
if (value.getAsString() == null)
return "";
else
return value.getAsString();
}
}

Expand Down

0 comments on commit e041dac

Please sign in to comment.