From 0269b61332a7860947372ee36e72f4c0c4e3ea17 Mon Sep 17 00:00:00 2001 From: arne Date: Wed, 1 Nov 2023 06:38:36 +0100 Subject: [PATCH] Repair nullpointer exception --- looptober.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/looptober.clj b/looptober.clj index 4182efe..abffc0f 100644 --- a/looptober.clj +++ b/looptober.clj @@ -76,7 +76,7 @@ (str (:spoiler_text status) "\n\n")) (:content status))] [::xspf/info (-> status :url)] - [::xspf/duration (-> file :meta :original :duration (* 1000) int)]])) statuses)]])) + [::xspf/duration (some-> file :meta :original :duration (* 1000) int)]])) statuses)]])) (defn app [req] (if (= "/" (:uri req))