Ignore:
Timestamp:
Oct 28, 2009, 8:32:15 AM (15 years ago)
Author:
gav
Message:

Fix LoginController? null object bug introduced at r166.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/LoginController.groovy

    r167 r172  
    150150                msg = "[$username] is disabled."
    151151            }
    152             else if (person.authorities.isEmpty()) {
    153                 msg = "[$username] has no GrantedAuthority."
     152            else if (person?.authorities?.isEmpty()) {
     153                msg = "[$username] has no granted authority."
    154154            }
    155155            else {
Note: See TracChangeset for help on using the changeset viewer.