diff --git a/apps/workflowengine/lib/Check/FileName.php b/apps/workflowengine/lib/Check/FileName.php index c6afbf7afa..f775227f71 100644 --- a/apps/workflowengine/lib/Check/FileName.php +++ b/apps/workflowengine/lib/Check/FileName.php @@ -59,7 +59,7 @@ class FileName extends AbstractStringCheck { * @return string */ protected function getActualValue(): string { - return basename($this->path); + return $this->path === null ? '' : basename($this->path); } /**