IDEMPIERE-3370:NPE when back to tab hasn't detail tab
This commit is contained in:
parent
5c9b4233aa
commit
c1390e3097
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue