diff --git a/app/models/project.rb b/app/models/project.rb
index ea0daa474246cda5a4758b59bb4a448d0161a507..db3088677d8d2d9f6d5ca21bfb73a230026d5287 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -490,7 +490,7 @@ class Project < ActiveRecord::Base
   end
 
   def import_url
-    if import_data && super
+    if import_data && super.present?
       import_url = Gitlab::UrlSanitizer.new(super, credentials: import_data.credentials)
       import_url.full_url
     else