Make sure fileinfo exists when calling getCheckSum in node API

This commit is contained in:
Vincent Petry 2016-02-08 12:23:48 +01:00
parent 97b2e19c78
commit 41ba9280f7

View file

@ -169,6 +169,6 @@ class File extends Node implements \OCP\Files\File {
* @inheritdoc
*/
public function getChecksum() {
return $this->fileInfo->getChecksum();
return $this->getFileInfo()->getChecksum();
}
}