Skip to content

Commit

Permalink
Merge pull request #25776 from nextcloud/fix/sabre-file-checksum-no-f…
Browse files Browse the repository at this point in the history
…ile-info

Only write checksum if we have a valid file info
  • Loading branch information
rullzer authored Mar 23, 2021
2 parents 24ec924 + 8152189 commit a219fa5
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 a219fa5

Please sign in to comment.