IDEMPIERE-5528 Context parsing on process Parameter not considering tab no (#1656)

- Solve NPE
This commit is contained in:
Carlos Ruiz 2023-01-29 11:12:40 +01:00 committed by GitHub
parent 74fab5d940
commit 683b7a8097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -3751,7 +3751,11 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
}
}
ProcessModalDialog dialog = new ProcessModalDialog(this, curWindowNo, adtabPanel.getGridTab().getTabNo(), pi, startWOasking);
ProcessModalDialog dialog;
if (adtabPanel != null && adtabPanel.getGridTab() != null)
dialog = new ProcessModalDialog(this, curWindowNo, adtabPanel.getGridTab().getTabNo(), pi, startWOasking);
else
dialog = new ProcessModalDialog(this, curWindowNo, pi, startWOasking);
if (dialog.isValid())
{