Skip to content

Commit

Permalink
Fixing bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
krulis-martin committed Jul 18, 2024
1 parent dd08ea5 commit c64ca8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/ExerciseConfig/Pipeline/Box/Box.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public function getOutputPort(string $port): ?Port
*/
protected function hasInputPortValue(string $port): bool
{
return $this->getInputPort($port)->getVariableValue() !== null &&
return $this->getInputPort($port)?->getVariableValue() !== null &&
!$this->getInputPort($port)->getVariableValue()->isEmpty();
}

Expand All @@ -252,7 +252,7 @@ protected function hasInputPortValue(string $port): bool
*/
protected function hasOutputPortValue(string $port): bool
{
return $this->getOutputPort($port)->getVariableValue() !== null &&
return $this->getOutputPort($port)?->getVariableValue() !== null &&
!$this->getOutputPort($port)->getVariableValue()->isEmpty();
}

Expand Down

0 comments on commit c64ca8f

Please sign in to comment.