Skip to content

Commit

Permalink
Prevent sending null to tryFrom()
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienClairembault committed Dec 18, 2024
1 parent bc6fada commit cbe2315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Glpi/Form/ConditionalVisiblity/ConditionData.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ public function getValueOperator(): ?ValueOperator
{
// No follback here as an empty value is valid if the condition is not
// fully specified yet.
return ValueOperator::tryFrom($this->value_operator);
return ValueOperator::tryFrom($this->value_operator ?? "");
}
}

0 comments on commit cbe2315

Please sign in to comment.