Skip to content

Fix NoMethodError for tags#date

Vasilii Iakliushin requested to merge 454109_fix_undefined_method_error into master

What does this MR do and why?

Contributes to #454109 (closed)

Sentry error: https://new-sentry.gitlab.net/organizations/gitlab/issues/742521/

Problem

Apparently Gitaly can return a tagger with an empty date. This case is not handled by Rails and raises an exception.

Solution

Verify that the date object is present before returning the date.

Edited by Vasilii Iakliushin

Merge request reports

Loading