From 63b89f0485ea8ba3594b4858e3e5883f3bbab201 Mon Sep 17 00:00:00 2001 From: Diana Stanley Date: Tue, 26 Feb 2019 12:04:12 -0800 Subject: Protect against nil due_on value in imported data --- lib/gitlab/github_import/importer/milestones_importer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 } -- cgit v1.2.3