fixes #34 NPE on WPayPrint

This commit is contained in:
Carlos Ruiz 2011-06-06 23:50:56 -05:00
parent 4b22df1f7d
commit 9a9bfc36ee
1 changed files with 2 additions and 0 deletions

View File

@ -303,6 +303,8 @@ public class WPayPrint extends PayPrint implements IFormController, EventListene
*/
private void loadPaymentRuleInfo()
{
if (fPaymentRule.getSelectedItem() == null)
return;
ValueNamePair pp = fPaymentRule.getSelectedItem().toValueNamePair();
if (pp == null)
return;