Skip to content

Commit

Permalink
GH-444 Fix potential nullptr exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Jul 10, 2024
1 parent e38942d commit 9dfde8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/nodes/variables/local_variable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ OScriptNodeInstance* OScriptNodeAssignLocalVariable::instantiate()
void OScriptNodeAssignLocalVariable::validate_node_during_build(BuildLog& p_log) const
{
Ref<OScriptNodePin> variable = find_pin("variable", PD_Input);
if (!variable.is_valid())
if (variable.is_valid())
{
if (!variable->has_any_connections())
p_log.error(this, variable, "Requires a connection.");
Expand Down

0 comments on commit 9dfde8a

Please sign in to comment.