Skip to content

Commit

Permalink
GD-310: Add support for Godot 3.5
Browse files Browse the repository at this point in the history
- fix parsing error on GdUnit3 config reader
  • Loading branch information
MikeSchulze authored and Nullpointer committed Aug 14, 2022
1 parent 2b1c71d commit 4916b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/gdUnit3/src/core/GdUnitRunnerConfig.gd
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func load(path :String = CONFIG_FILE) -> Result:
if err != OK:
return Result.error("Can't load test runner configuration '%s'! ERROR: %s." % [path, GdUnitTools.error_as_string(err)])
var content := file.get_as_text()
if content[0] == '{':
if not content.empty() and content[0] == '{':
# Parse as json
var result := JSON.parse(content)
if result.error != OK:
Expand Down

0 comments on commit 4916b91

Please sign in to comment.