Permalink
Browse files

guard against non numbers.

  • Loading branch information...
mfine committed Aug 23, 2012
1 parent a490db9 commit 715fef9451899c721059b0b4e8d0444646451f3e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/pulse/def.clj
View
@@ -59,7 +59,7 @@
(if-not (pred-fn evt)
receive-buffer
(let [val (val-fn evt)]
- (if (nil? val)
+ (if (or (nil? val) (not (number? val)))
(do
(prn :fn "mean" :at "nil-val" :msg (:msg evt))
receive-buffer)

0 comments on commit 715fef9

Please sign in to comment.