Handle null cases in the MoneyMixinAbstract
This commit is contained in:
parent
8465250061
commit
edea6807c6
@ -15,7 +15,7 @@ public abstract class MoneyMixinAbstract implements MoneyMixin
|
||||
|
||||
public boolean move(String fromId, String toId, String byId, double amount, String category, String message)
|
||||
{
|
||||
return this.move(fromId, toId, byId, amount, Arrays.asList(category), message);
|
||||
return this.move(fromId, toId, byId, amount, (category == null ? null : Arrays.asList(category)), message);
|
||||
}
|
||||
public boolean move(String fromId, String toId, String byId, double amount, Collection<String> categories)
|
||||
{
|
||||
@ -23,7 +23,7 @@ public abstract class MoneyMixinAbstract implements MoneyMixin
|
||||
}
|
||||
public boolean move(String fromId, String toId, String byId, double amount, String category)
|
||||
{
|
||||
return this.move(fromId, toId, byId, amount, Arrays.asList(category), null);
|
||||
return this.move(fromId, toId, byId, amount, (category == null ? null : Arrays.asList(category)), null);
|
||||
}
|
||||
public boolean move(String fromId, String toId, String byId, double amount)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user