mirror of
https://github.com/nextcloud/server.git
synced 2026-04-28 17:48:40 -04:00
Merge pull request #35576 from nextcloud/handle-possible-null-value-in-new-simple-file
Handle possible null value for file in OC\Files\SimpleFS\NewSimpleFile
This commit is contained in:
commit
2e0d262864
1 changed files with 4 additions and 0 deletions
|
|
@ -136,6 +136,10 @@ class NewSimpleFile implements ISimpleFile {
|
|||
* @throws NotFoundException
|
||||
*/
|
||||
private function checkFile(): void {
|
||||
if (!$this->file) {
|
||||
throw new NotFoundException('File not set');
|
||||
}
|
||||
|
||||
$cur = $this->file;
|
||||
|
||||
while ($cur->stat() === false) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue