triggered by empty accounts without amounts
public void addAmount(float amount) {
this.addAmount(amount, null);
}
- public int getAmountCount() { return amounts.size(); }
+ public int getAmountCount() { return (amounts != null) ? amounts.size() : 0; }
public String getAmountsString() {
if ((amounts == null) || amounts.isEmpty()) return "";
public boolean amountsExpanded() { return amountsExpanded; }
public void setAmountsExpanded(boolean flag) { amountsExpanded = flag; }
public void toggleAmountsExpanded() { amountsExpanded = !amountsExpanded; }
+
}