GrailsInAction / graina2

Source code for the 2nd edition of Grails in Action
90 stars 91 forks source link

Update LoginController.groovy #138

Open kamelromdhani opened 3 years ago

kamelromdhani commented 3 years ago

you can't test user and user.password in the same line because if the user is null you will get a NullPointerException when trying to access user.password