diff options
Diffstat (limited to 'logic/helpers')
-rw-r--r-- | logic/helpers/hash.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/logic/helpers/hash.rb b/logic/helpers/hash.rb index 52bd8d4..90432b5 100644 --- a/logic/helpers/hash.rb +++ b/logic/helpers/hash.rb @@ -23,6 +23,10 @@ module NanoBot return nil unless node path.each do |key| + unless node.is_a?(::Hash) + node = nil + break + end node = node[key] break if node.nil? end |