Skip to content

Commit

Permalink
seems to be entering with nil key/value pairs
Browse files Browse the repository at this point in the history
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
kungfumike committed Jun 18, 2013
1 parent 78abc17 commit 2d0ddd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/heap_dump/dumped_module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2d0ddd4

Please sign in to comment.