Skip to content

Conversation

@icewind1991
Copy link
Member

🚧 #51074

@icewind1991 icewind1991 force-pushed the fetch-mount-memory-30 branch from 5baab5c to 98f1214 Compare February 26, 2025 18:19
@susnux susnux added this to the Nextcloud 30.0.8 milestone Mar 2, 2025
@icewind1991 icewind1991 force-pushed the fetch-mount-memory-30 branch from 98f1214 to 31114a6 Compare March 14, 2025 13:34
$result[$mount->getUser()->getUID()] = $userFolder->getById($id);
foreach ($mounts as $cachedMount) {
$mount = $this->rootFolder->getMount($cachedMount->getMountPoint());
$cache = $mount->getStorage()->getCache();

Check notice

Code scanning / Psalm

PossiblyNullReference Note

Cannot call method getCache on possibly null value
$mount = $this->rootFolder->getMount($cachedMount->getMountPoint());
$cache = $mount->getStorage()->getCache();
$cacheEntry = $cache->get($id);
$node = $this->rootFolder->getNodeFromCacheEntryAndMount($cacheEntry, $mount);

Check notice

Code scanning / Psalm

PossiblyFalseArgument Note

Argument 1 of OCP\Files\IRootFolder::getNodeFromCacheEntryAndMount cannot be false, possibly OCP\Files\Cache\ICacheEntry value expected
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants