Added null check.

This commit is contained in:
Heng Sin Low 2011-02-07 11:07:20 +08:00
parent 14f27d2f3b
commit a9f8888564
1 changed files with 6 additions and 4 deletions

View File

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