Issue11: null context causing indentation crash

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ser 2004-02-16 22:24:45 +00:00
parent b84ebdcb05
commit 511dceec5c
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ module REXML
end
def indent to, ind
if @parent and not @parent.context[:indentstyle].nil? then
if @parent and @parent.context and not @parent.context[:indentstyle].nil? then
indentstyle = @parent.context[:indentstyle]
else
indentstyle = ' '

View File

@ -22,5 +22,5 @@
module REXML
Copyright = "Copyright #{Time.now.year} Sean Russell <ser@germane-software.com>"
Date = "+2004/047"
Version = "2.7.4.1"
Version = "2.7.4.2"
end