Skip to content

Commit

Permalink
[backend] Fix on 500 errors when importing a scenario (#2144)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimfacion committed Jan 2, 2025
1 parent 05f9984 commit 4a25257
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ private void importInjects(
ofNullable(injectNode.get("inject_enabled")).map(JsonNode::booleanValue).orElse(true);
String injectorContractIdFromNode = null;
JsonNode injectContractNode = injectNode.get("inject_injector_contract");
if (injectContractNode != null) {
if (injectContractNode != null && !injectContractNode.isNull()) {
injectorContractIdFromNode = injectContractNode.get("injector_contract_id").textValue();
}

Expand Down

0 comments on commit 4a25257

Please sign in to comment.