diff --git a/app/lib/email_processor.rb b/app/lib/email_processor.rb index dde0b74e..513e4b3f 100644 --- a/app/lib/email_processor.rb +++ b/app/lib/email_processor.rb @@ -429,7 +429,7 @@ def collage_from_attachments(attachments, existing_image_url: nil) def collage_from_urls(urls) return nil unless urls.present? - urls.reject! { |url| url.include?("googleusercontent.com/mail-sig/") } + urls.reject! { |url| url&.include?("googleusercontent.com/mail-sig/") } urls.compact! if urls.size == 1 && urls.first.starts_with?("http")