always double check there is a class first

This commit is contained in:
Sam 2017-11-13 16:06:18 +11:00
parent dfe9f70747
commit ed0751f288
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ class CookedPostProcessor
found = false found = false
parent = img parent = img
while parent = parent.parent while parent = parent.parent
if parent["class"].include? "whitelistedgeneric" if parent["class"] && parent["class"].include?("whitelistedgeneric")
found = true found = true
break break
end end