Skip to content

Commit d49787d

Browse files
committed
fix(files_versions): Add missing null check
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
1 parent 20953d0 commit d49787d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/files_versions/lib/Listener/FileEventsListener.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ public function write_hook(Node $node): void {
194194
}
195195

196196
$path = $this->getPathForNode($node);
197+
198+
if ($path === null) {
199+
return;
200+
}
201+
197202
$result = Storage::store($path);
198203

199204
// Store the result of the version creation so it can be used in post_write_hook.

0 commit comments

Comments
 (0)