Use thread OP as title if title is not provided

Avoids NullPointerException when doing final filtering on thread titles
This commit is contained in:
Felisp 2023-12-23 00:48:08 +01:00
parent 674f0447fc
commit 057cc86ae5

View file

@ -33,7 +33,9 @@
(recur (rest remaining-threads) (recur (rest remaining-threads)
threads-total threads-total
(inc index) (inc index)
(conj! ret {:title (:sub thread) (conj! ret {:title (or (:sub thread) ;We use thread title if thread has it
(:com thread) ;we use body if thread has it
"") ;Thread has nothing, this prevents null pointer
:no (:no thread) :no (:no thread)
:chod (* 100 (float (/ index threads-total)))})))))) :chod (* 100 (float (/ index threads-total)))}))))))