IDEMPIERE-3518 Improvement For Mobile Compatibility. Minor NPE fix.

This commit is contained in:
Heng Sin Low 2017-10-26 17:57:06 +08:00
parent af9c3d8ddd
commit 621f9af79d
1 changed files with 2 additions and 2 deletions

View File

@ -400,7 +400,7 @@ public class WindowContainer extends AbstractUIPart implements EventListener<Eve
}
private void updateTabListButton() {
if (isMobile()) {
if (isMobile() && tabListBtn != null) {
int cnt = tabbox.getTabs().getChildren().size()-1;
if (cnt > 0) {
tabListBtn.setLabel(Integer.toString(cnt));
@ -487,7 +487,7 @@ public class WindowContainer extends AbstractUIPart implements EventListener<Eve
}
private void updateMobileTabState(org.zkoss.zul.Tab tab) {
if (isMobile())
if (isMobile() && tabListBtn != null)
{
List<Component> tabs = tabbox.getTabs().getChildren();
for(Component c: tabs) {