From 8890c88c119f9b1faaa6e60b3230561d8942973e Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 14 Dec 2015 13:35:37 +0100 Subject: [PATCH] handle not found in trash hook --- apps/files_trashbin/lib/trashbin.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php index 874aceaad1..b2fb51226c 100644 --- a/apps/files_trashbin/lib/trashbin.php +++ b/apps/files_trashbin/lib/trashbin.php @@ -62,7 +62,11 @@ class Trashbin { * @param array $params */ public static function ensureFileScannedHook($params) { - self::getUidAndFilename($params['path']); + try { + self::getUidAndFilename($params['path']); + } catch (NotFoundException $e) { + // nothing to scan for non existing files + } } /**