No Course leads to Exception on Users page
Created by: kordianbruck
Only happens, if there is no course that the user has selected. Probably need to check for nil somewhere
A NoMethodError occurred in users#index:
undefined method `users' for nil:NilClass
app/controllers/users_controller.rb:47:in `index'
-------------------------------
Request:
-------------------------------
* URL : http://scyper1.informatik.tu-muenchen.de:8086/users
* IP address: 172.17.0.1
* Parameters: {"controller"=>"users", "action"=>"index"}
* Rails root: /src
-------------------------------
Session:
-------------------------------
* session id: nil
* data: #<ActionDispatch::Request::Session:0x00007fcc5870d240 ...>