Added null check.
This commit is contained in:
parent
14f27d2f3b
commit
a9f8888564
|
@ -43,7 +43,9 @@ public class Tab extends org.zkoss.zul.Tab
|
||||||
@Override
|
@Override
|
||||||
public void onClose() {
|
public void onClose() {
|
||||||
Tabpanel tp = (Tabpanel) getLinkedPanel();
|
Tabpanel tp = (Tabpanel) getLinkedPanel();
|
||||||
|
if (tp != null) {
|
||||||
tp.onClose();
|
tp.onClose();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue