lib/rvm/shell/result.rb in rvm-1.6.20 vs lib/rvm/shell/result.rb in rvm-1.6.21

- old
+ new

@@ -9,10 +9,10 @@ # Creates a new result object with the given details. def initialize(command, status, stdout, stderr) @command = command.dup.freeze @raw_status = status - @environment = @raw_status["environment"] || {} + @environment = (@raw_status ? (@raw_status["environment"] || {}) : {}) @successful = (exit_status == 0) @stdout = stdout.freeze @stderr = stderr.freeze end