Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(files_versions): Add missing null check
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
  • Loading branch information
pulsejet committed Mar 7, 2024
commit d49787d004d31572591413f6eddc8fce3de53ad4
5 changes: 5 additions & 0 deletions apps/files_versions/lib/Listener/FileEventsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@ public function write_hook(Node $node): void {
}

$path = $this->getPathForNode($node);

if ($path === null) {
return;
}

$result = Storage::store($path);

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