   constructor: (currentUser) ->
     @usersPath = "/autocomplete/users.json"
     @userPath = "/autocomplete/users/:id.json"
-    @currentUser = JSON.parse(currentUser)
+    if currentUser?
+      @currentUser = JSON.parse(currentUser)
 
     $('.js-user-search').each (i, dropdown) =>
       $dropdown = $(dropdown)

        ).done (data) ->
          $loading.fadeOut()
          $selectbox.hide()
          
          if data.assignee
            user =
              name: data.assignee.name

          listClosingTags = "</a>
          </li>"


          if username is ''
            listWithUserName = ''

