Fixed: NoMethodError: undefined method contents for nil:NilClass

This commit is contained in:
Vokhmin Alexey V 2013-11-25 23:09:33 +04:00
parent 1190ed2595
commit 04964f0171
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ module Modules
end
def tree_info(tree, treeish = nil, path = nil)
return [] unless tree
grouped = tree.contents.sort_by{|c| c.name.downcase}.group_by(&:class)
[
grouped[Grit::Tree],