Permalink
Browse files

seems to be entering with nil key/value pairs

Causes a return of nil if the key is nil
(makes it work again, I honestly have next to no idea why)
  • Loading branch information...
1 parent 78abc17 commit 2d0ddd4ba444510e302a3defc46a92e4b4c3ae7d @kungfumike committed Jun 18, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/heap_dump/dumped_module.rb
@@ -36,6 +36,7 @@ def method_table
def find_class(name)
name = name.to_s
constant_table.map do |key, val|
+ return nil if key.nil?
return val.as_module if key.data == name
end

0 comments on commit 2d0ddd4

Please sign in to comment.