diff options
author | Diana Stanley <dstanley@gitlab.com> | 2019-02-26 23:04:12 +0300 |
---|---|---|
committer | Diana Stanley <dstanley@gitlab.com> | 2019-02-26 23:04:12 +0300 |
commit | 63b89f0485ea8ba3594b4858e3e5883f3bbab201 (patch) | |
tree | c7d09beb3a80d1e3845760b29c2563e61cc9cf51 /lib/gitlab/github_import | |
parent | d24ea868ab5a3644884cb02f6faa2b8daf48b1d2 (diff) |
Protect against nil due_on value in imported data
Diffstat (limited to 'lib/gitlab/github_import')
-rw-r--r-- | lib/gitlab/github_import/importer/milestones_importer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/github_import/importer/milestones_importer.rb b/lib/gitlab/github_import/importer/milestones_importer.rb index 8a5b3db9e08..71ff7465d9b 100644 --- a/lib/gitlab/github_import/importer/milestones_importer.rb +++ b/lib/gitlab/github_import/importer/milestones_importer.rb @@ -42,7 +42,7 @@ module Gitlab description: milestone.description, project_id: project.id, state: state_for(milestone), - due_date: milestone.due_on.to_date, + due_date: milestone.due_on&.to_date, created_at: milestone.created_at, updated_at: milestone.updated_at } |