Skip to content

Commit

Permalink
Only write checksum if we have a valid file info
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
  • Loading branch information
ChristophWurst committed Feb 24, 2021
1 parent b89fbaf commit 3032b62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/dav/lib/Connector/Sabre/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -680,9 +680,12 @@ private function convertToSabreException(\Exception $e) {
/**
* Get the checksum for this file
*
* @return string
* @return string|null
*/
public function getChecksum() {
if (!$this->info) {
return null;
}
return $this->info->getChecksum();
}

Expand Down

0 comments on commit 3032b62

Please sign in to comment.