Looks like the #sanitize_breadcrumb! method will need to check that the data value is a Hash when trying to process it.
This is what I found locally, as a breadcrumb was being created with a Stripe::Event object.
If I change line 68 to return unless breadcrumb.data.is_a? Hash then we are fine, and this will work if breadcrumb.data is nil too.
Looks like the
#sanitize_breadcrumb!method will need to check that thedatavalue is aHashwhen trying to process it.This is what I found locally, as a breadcrumb was being created with a
Stripe::Eventobject.If I change line 68 to
return unless breadcrumb.data.is_a? Hashthen we are fine, and this will work ifbreadcrumb.dataisniltoo.