Skip to content

Commit

Permalink
Avoid error if no patinfo can be found
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Aug 29, 2017
1 parent 272d958 commit 7df44c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/session.rb
Expand Up @@ -289,7 +289,7 @@ def choosen_info_diff
date = m[2]
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])
found ||= @app.registration(m[1]).package(m[3])
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 7df44c9

Please sign in to comment.