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(); + } } }