From 4403c3bb68de0e0d6eb45fae66c6a4e661ad9460 Mon Sep 17 00:00:00 2001 From: Elaine Tan Date: Thu, 13 Sep 2012 17:19:11 +0800 Subject: [PATCH] IDEMPIERE-375 Implement Forgot my Password - fix NPE --- .../src/org/adempiere/webui/panel/ResetPasswordPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/ResetPasswordPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/ResetPasswordPanel.java index 868776173f..bfb591318d 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/ResetPasswordPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/ResetPasswordPanel.java @@ -284,7 +284,7 @@ public class ResetPasswordPanel extends Window implements EventListener { if (event.getTarget().getId().equals(ConfirmPanel.A_OK)) { - if (txtAnswer.isReadonly()) + if (txtAnswer != null && txtAnswer.isReadonly()) validateEmail(); else validateResetPassword();