From 9a9bfc36eec15c5b1d11b7959004e35de32ee4ad Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 6 Jun 2011 23:50:56 -0500 Subject: [PATCH] fixes #34 NPE on WPayPrint --- .../WEB-INF/src/org/adempiere/webui/apps/form/WPayPrint.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WPayPrint.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WPayPrint.java index 387496f310..a9be712a57 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WPayPrint.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WPayPrint.java @@ -303,6 +303,8 @@ public class WPayPrint extends PayPrint implements IFormController, EventListene */ private void loadPaymentRuleInfo() { + if (fPaymentRule.getSelectedItem() == null) + return; ValueNamePair pp = fPaymentRule.getSelectedItem().toValueNamePair(); if (pp == null) return;