IDEMPIERE-375 Implement Forgot my Password - fix NPE

This commit is contained in:
Elaine Tan 2012-09-13 17:19:11 +08:00
parent 951765ccd0
commit 4403c3bb68
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ public class ResetPasswordPanel extends Window implements EventListener<Event>
{
if (event.getTarget().getId().equals(ConfirmPanel.A_OK))
{
if (txtAnswer.isReadonly())
if (txtAnswer != null && txtAnswer.isReadonly())
validateEmail();
else
validateResetPassword();