Fix a stack trace when one of these is nil
git-svn-id: file:///home/svn/framework3/trunk@12406 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
5fc0f4eaf1
commit
4c0c282cf8
|
@ -775,7 +775,7 @@ protected
|
||||||
else
|
else
|
||||||
# family often contains the vendor string, so rip it out to
|
# family often contains the vendor string, so rip it out to
|
||||||
# avoid useless duplication
|
# avoid useless duplication
|
||||||
ret[:os_name] = data[:vendor] + " " + data[:family].gsub(data[:vendor], '').strip
|
ret[:os_name] = data[:vendor].to_s + " " + data[:family].to_s.gsub(data[:vendor].to_s, '').strip
|
||||||
end
|
end
|
||||||
when "Windows"
|
when "Windows"
|
||||||
ret[:os_name] = "Microsoft Windows"
|
ret[:os_name] = "Microsoft Windows"
|
||||||
|
|
Loading…
Reference in New Issue