From a9f8888564036fd2c76b658d660f39c7ea5890d3 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 7 Feb 2011 11:07:20 +0800 Subject: [PATCH] Added null check. --- .../WEB-INF/src/org/adempiere/webui/component/Tab.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/Tab.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/Tab.java index 67db6b6891..a9877334b4 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/Tab.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/Tab.java @@ -26,7 +26,7 @@ package org.adempiere.webui.component; public class Tab extends org.zkoss.zul.Tab { /** - * + * */ private static final long serialVersionUID = -550172446768384271L; @@ -34,16 +34,18 @@ public class Tab extends org.zkoss.zul.Tab { this.setLabel(str); } - + public Tab() { - + } @Override public void onClose() { Tabpanel tp = (Tabpanel) getLinkedPanel(); - tp.onClose(); + if (tp != null) { + tp.onClose(); + } } }