Merge pull request #17359 from nextcloud/bugfix/noid/dont-call-basename-on-null
Don't call basename on null
This commit is contained in:
commit
7b729c581d
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue