From a3bc4ff9f3f5202eae3d4bf8b70b297662c34637 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 11 Feb 2025 15:43:35 +0100 Subject: [PATCH] :bug: Prevent exception when no file is found on process file srepl helper --- backend/src/app/srepl/helpers.clj | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/src/app/srepl/helpers.clj b/backend/src/app/srepl/helpers.clj index 8aba532b3..2ea26e3bb 100644 --- a/backend/src/app/srepl/helpers.clj +++ b/backend/src/app/srepl/helpers.clj @@ -132,9 +132,10 @@ (bfc/get-file system id)))) (d/index-by :id))) - file' (if with-libraries? - (update-fn file libs opts) - (update-fn file opts))] + file' (when file + (if with-libraries? + (update-fn file libs opts) + (update-fn file opts)))] (when (and (some? file') (not (identical? file file')))