From 131e10912e234f9cb4d332e7fd42d67028e0baac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Coye=20de=20Brune=CC=81lis?= Date: Thu, 23 Jan 2025 10:26:58 +0100 Subject: [PATCH] fix(FloatingPanelQuickActionCollectionViewCell): Realm crash on invalidated file comming from an live object kept as an ivar --- .../FloatingPanelQuickActionCollectionViewCell.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/kDrive/UI/View/Files/FloatingPanel/FloatingPanelQuickActionCollectionViewCell.swift b/kDrive/UI/View/Files/FloatingPanel/FloatingPanelQuickActionCollectionViewCell.swift index 0f515bc99..f254a3d05 100644 --- a/kDrive/UI/View/Files/FloatingPanel/FloatingPanelQuickActionCollectionViewCell.swift +++ b/kDrive/UI/View/Files/FloatingPanel/FloatingPanelQuickActionCollectionViewCell.swift @@ -58,6 +58,7 @@ class FloatingPanelQuickActionCollectionViewCell: UICollectionViewCell { #if !ISEXTENSION func configure(with action: FloatingPanelAction, file: File) { + guard !file.isInvalidated else { return } configure( name: action.name, icon: action.image,