FIX: extra safety

This commit is contained in:
Sam 2014-07-18 10:36:17 +10:00
parent b522f6116f
commit c47a70e390
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class CookedPostProcessor
return unless image_sizes.present?
image_sizes.each do |image_size|
url, size = image_size[0], image_size[1]
return [size["width"], size["height"]] if url.include?(src)
return [size["width"], size["height"]] if url && size && url.include?(src)
end
end