yetibot / core

:expressionless: Core yetibot utilities, extracted for shared use among Yetibot and its various plugins
https://yetibot.com
Eclipse Public License 1.0
27 stars 17 forks source link

Convert `previous-value` to string before attempting to check `empty?` on it #85

Closed devth closed 5 years ago

devth commented 5 years ago

This prevents an error if previous-value was not a string, such as when a command incorrectly returns a number, or data is used to extract some number from a data structure which is then passed across a pipe

The error was:

java.lang.IllegalArgumentException: Don't know how to create ISeq from: java.lang.Long