lib/soap/nestedexception.rb in rubyjedi-soap4r-1.5.8.01 vs lib/soap/nestedexception.rb in rubyjedi-soap4r-1.5.8.20100616125722
- old
+ new
@@ -18,10 +18,10 @@
@cause = cause
@original_backtrace = nil
end
def set_backtrace(backtrace)
- if @cause and @cause.respond_to?(:backtrace)
+ if defined?(@cause) and @cause.respond_to?(:backtrace)
@original_backtrace = backtrace
=begin
# for agressive backtrace abstraction: 'here' only should not be good
here = @original_backtrace[0]
backtrace = Array[*@cause.backtrace]