Prevent undefined method `<=>' for nil:NilClass in AbstractAdapter (#4098).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2957 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-10-24 11:08:09 +00:00
parent 2445250960
commit cabf052127
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ module Redmine
def sort_by_name
sort {|x,y|
if x.kind == y.kind
x.name <=> y.name
x.name.to_s <=> y.name.to_s
else
x.kind <=> y.kind
end