Skip to content

Commit

Permalink
FileJSON: return empty string when null
Browse files Browse the repository at this point in the history
  • Loading branch information
Lemon-King committed Jun 11, 2024
1 parent af2a15e commit f44528e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/assets/zscript/lib/filejson.zs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ class FileJSON {
return "";
}
HXDD_JsonString type_str = HXDD_JsonString(type_elem);
if (!type_str) {
return "";
}
return type_str.s;
}
static int GetInt(HXDD_JsonObject jo, String key) {
Expand Down

0 comments on commit f44528e

Please sign in to comment.