Merge pull request #25776 from nextcloud/fix/sabre-file-checksum-no-file-info
Only write checksum if we have a valid file info
This commit is contained in:
commit
a219fa587a
|
@ -680,9 +680,12 @@ class File extends Node implements IFile {
|
|||
/**
|
||||
* Get the checksum for this file
|
||||
*
|
||||
* @return string
|
||||
* @return string|null
|
||||
*/
|
||||
public function getChecksum() {
|
||||
if (!$this->info) {
|
||||
return null;
|
||||
}
|
||||
return $this->info->getChecksum();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue