Skip to content
Snippets Groups Projects
Commit 4b380dc2 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#691 - fixed equals methods if tags is null

parent 15502ab1
No related branches found
No related tags found
No related merge requests found
Pipeline #6283 failed
......@@ -332,7 +332,7 @@ public class Template implements TransactionBase, Iconizable
Objects.equals(name, template.name) &&
Objects.equals(description, template.description) &&
Objects.equals(iconReference, template.iconReference) &&
Objects.equals(tags.stream().toList(), template.tags) &&
Objects.equals(tags == null ? null : tags.stream().toList(), template.tags) &&
Objects.equals(transferAccount, template.transferAccount) &&
Objects.equals(templateGroup, template.templateGroup);
}
......
......@@ -292,7 +292,7 @@ public class Transaction implements TransactionBase, ProvidesID
Objects.equals(category, transaction.category) &&
Objects.equals(name, transaction.name) &&
Objects.equals(description, transaction.description) &&
Objects.equals(tags.stream().toList(), transaction.tags) &&
Objects.equals(tags == null ? null : tags.stream().toList(), transaction.tags) &&
Objects.equals(repeatingOption, transaction.repeatingOption) &&
Objects.equals(transferAccount, transaction.transferAccount);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment