IDEMPIERE-4594 Payment Selection (Manual) - NPE When Payment Date is empty (#455)
Fix NPE
This commit is contained in:
parent
4d96ac1f8e
commit
6abbc4c9da
|
@ -499,6 +499,11 @@ public class WPaySelect extends PaySelect
|
||||||
if (m_noSelected == 0)
|
if (m_noSelected == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if(fieldPayDate.getComponent().getValue() == null)
|
||||||
|
{
|
||||||
|
throw new WrongValueException(fieldPayDate.getComponent(), Msg.getMsg(Env.getCtx(), "FillMandatory") + labelPayDate.getValue());
|
||||||
|
}
|
||||||
|
|
||||||
String msg = generatePaySelect(miniTable, (ValueNamePair) fieldPaymentRule.getSelectedItem().getValue(),
|
String msg = generatePaySelect(miniTable, (ValueNamePair) fieldPaymentRule.getSelectedItem().getValue(),
|
||||||
new Timestamp(fieldPayDate.getComponent().getValue().getTime()),
|
new Timestamp(fieldPayDate.getComponent().getValue().getTime()),
|
||||||
(BankInfo)fieldBankAccount.getSelectedItem().getValue());
|
(BankInfo)fieldBankAccount.getSelectedItem().getValue());
|
||||||
|
|
Loading…
Reference in New Issue