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

#338 - fixed NullPointerException if transaction tags are null

parent 299346a5
No related branches found
No related tags found
No related merge requests found
Pipeline #3358 passed
......@@ -78,7 +78,14 @@ public class Template implements TransactionBase
this.category = transaction.getCategory();
this.name = transaction.getName();
this.description = transaction.getDescription();
if(transaction.getTags() == null)
{
this.tags = new ArrayList<>();
}
else
{
this.tags = new ArrayList<>(transaction.getTags());
}
this.transferAccount = transaction.getTransferAccount();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment