Reputation: 2958
Alright this probably is the worst error I have found ever.
I have two projects, both using same code:
Sanitize.clean(string, Sanitize::Config::BASIC)
but one works and another fails.
Problem is similar to this poor guy's post: https://stackoverflow.com/questions/2724342/cant-dup-nilclass-how-to-trace-to-offender
Could anybody help please?
Upvotes: 1
Views: 311
Reputation: 2958
This will happen if you pass nil
into clean()
instead of a string. Make sure your string
variable is really a string.
Upvotes: 2