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);
|
detailPane.setSelectedIndex(0);
|
||||||
activateDetailIfVisible();
|
activateDetailIfVisible();
|
||||||
} else {
|
} else {
|
||||||
if (((ADTabpanel) headerTab).isDetailVisible()) {
|
if (((ADTabpanel) headerTab).isDetailVisible() && detailPane.getSelectedADTabpanel() != null) {
|
||||||
IADTabpanel selectDetailPanel = detailPane.getSelectedADTabpanel();
|
IADTabpanel selectDetailPanel = detailPane.getSelectedADTabpanel();
|
||||||
if (!selectDetailPanel.isVisible()) {
|
if (!selectDetailPanel.isVisible()) {
|
||||||
selectDetailPanel.setVisible(true);
|
selectDetailPanel.setVisible(true);
|
||||||
|
|
Loading…
Reference in New Issue