IDEMPIERE-1293 NPE error on Advance Search

This commit is contained in:
Richard Morales 2013-08-26 16:14:32 -05:00
parent a880a91780
commit 320da911df
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ public class WPaymentEditor extends WEditor implements ListDataListener {
{
int windowNo = lookup == null ? 0 : lookup.getWindowNo();
Object newValue = getValue();
if (newValue != null)
if (newValue != null && getGridField().getGridTab() != null)
{
final IPaymentForm pf = WPaymentFormFactory.create(windowNo, getGridField().getGridTab(), (String) newValue);
if (pf != null)