IDEMPIERE-3370:NPE when back to tab hasn't detail tab

This commit is contained in:
hieplq 2017-05-22 09:54:01 +07:00
parent 5c9b4233aa
commit c1390e3097
1 changed files with 1 additions and 1 deletions

View File

@ -580,7 +580,7 @@ public class CompositeADTabbox extends AbstractADTabbox
detailPane.setSelectedIndex(0);
activateDetailIfVisible();
} else {
if (((ADTabpanel) headerTab).isDetailVisible()) {
if (((ADTabpanel) headerTab).isDetailVisible() && detailPane.getSelectedADTabpanel() != null) {
IADTabpanel selectDetailPanel = detailPane.getSelectedADTabpanel();
if (!selectDetailPanel.isVisible()) {
selectDetailPanel.setVisible(true);