Use thread OP as title if title is not provided
Avoids NullPointerException when doing final filtering on thread titles
This commit is contained in:
parent
674f0447fc
commit
057cc86ae5
1 changed files with 3 additions and 1 deletions
|
@ -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)))}))))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue