diff --git a/lib/Service/ExternalFilesService.php b/lib/Service/ExternalFilesService.php index d1679f6..404850b 100644 --- a/lib/Service/ExternalFilesService.php +++ b/lib/Service/ExternalFilesService.php @@ -239,6 +239,10 @@ private function isMountFullGlobal(MountPoint $mount): bool { private function getMountPoint(Node $file): MountPoint { try { + if($file->getMountPoint()->getMountId() === null){ + throw new FileIsNotIndexableException('getMountId is null'); + } + return $this->getExternalMountById( $file->getMountPoint() ->getMountId()