Guard against state that shouldn't happen but does

This commit is contained in:
Tristan Hume
2013-08-30 15:26:26 -04:00
parent 136b6763e6
commit af50f71224

View File

@@ -67,7 +67,7 @@ module Liquid
all_warnings = []
all_warnings.concat(@warnings) if @warnings
@children.each do |node|
(@children || []).each do |node|
all_warnings.concat(node.warnings || [])
end