nil fields cause issues
Reported by Adam Bair | June 29th, 2008 @ 07:00 PM | in v0.1
NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.split
/vendor/plugins/fu-fu/lib/profanity_filter.rb:37:in `clean'
Comments and changes to this ticket
-
Adam Bair June 29th, 2008 @ 07:09 PM
- State changed from new to resolved
(from [f1cdf298e5993b0a4267d1c8a35b293e14965ee3]) Handle nil values appropriately. [#9 state:resolved]
-
Adam Bair June 29th, 2008 @ 07:09 PM
- State changed from new to resolved
-
Adam Bair June 29th, 2008 @ 07:12 PM
(from [1f45119008d700bb37ffaacd9c9056f68311e12c]) Ditched rescue nil in favor of something a bit more explicit. [#9 status:resolved]
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Fu-fu: The Profanity Filter for Rails.
http://github.com/adambair/fu-fu/tree/master