Skip to content

Commit

Permalink
Avoid nil error when diff info is no longer present
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Jan 31, 2018
1 parent 6ed58fd commit acef0b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ def choosen_info_diff
elsif m = PI_DIFF_REGEXP.match(request_path)
found = @app.registration(m[1]).sequence(m[2]).package(m[3])
found ||= @app.registration(m[1]).package(m[3])
return [] unless found
log = found.patinfo.send(self.language).change_log.sort!{|x,y| y.time.to_s <=> x.time.to_s}
date = m[4]
end
Expand Down

0 comments on commit acef0b0

Please sign in to comment.