[Fixed] 500 Error New Project

When clicking on new project I get a 500 error.

This is the error in the log output

Started GET “/projects/new” for at 2015-12-02 11:54:39 -0500
Processing by ProjectsController#new as HTML
Completed 500 Internal Server Error in 82ms (ActiveRecord: 7.0ms)

ActionView::Template::Error (undefined method empty?' for nil:NilClass): 22: .col-sm-10 23: = f.select :namespace_id, namespaces_options(params[:namespace_id] || :current_user), {}, {class: 'select2', tabindex: 2} 24: 25: - if import_sources_enabled? 26: .project-import.js-toggle-container 27: .form-group 28: %label.control-label Import project from app/controllers/application_controller.rb:302:in import_sources_enabled?’
app/views/projects/new.html.haml:25:in block in _app_views_projects_new_html_haml___1084676243923991135_71736820' app/views/projects/new.html.haml:8:in _app_views_projects_new_html_haml___1084676243923991135_71736820’

I was able to fix the error by running this command

#sudo gitlab-rake cache:clear