diff options
author | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-16 22:24:45 +0000 |
---|---|---|
committer | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-16 22:24:45 +0000 |
commit | 511dceec5c9ce1d3164e4f1af9177cae7a7b10fe (patch) | |
tree | c21d8a7e9c3b58befcd8ac2eee5b18416384c9ff /lib/rexml | |
parent | b84ebdcb0597511207c4768e97ce313e0b9d4dbf (diff) |
Issue11: null context causing indentation crash
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml')
-rw-r--r-- | lib/rexml/node.rb | 2 | ||||
-rw-r--r-- | lib/rexml/rexml.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rexml/node.rb b/lib/rexml/node.rb index 9f51b51fc1..5f414c03ef 100644 --- a/lib/rexml/node.rb +++ b/lib/rexml/node.rb @@ -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 = ' ' diff --git a/lib/rexml/rexml.rb b/lib/rexml/rexml.rb index 5ff9075425..4d2a95b022 100644 --- a/lib/rexml/rexml.rb +++ b/lib/rexml/rexml.rb @@ -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 |