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