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

@ -43,7 +43,9 @@ public class Tab extends org.zkoss.zul.Tab
@Override
public void onClose() {
Tabpanel tp = (Tabpanel) getLinkedPanel();
if (tp != null) {
tp.onClose();
}
}
}