Skip to content

Firefly III: a personal finances manager

Catch a nullpointer.

James Cole189a323f3cef
diff --git a/app/Console/Commands/Upgrade/RepairsPostgresSequences.php b/app/Console/Commands/Upgrade/RepairsPostgresSequences.php
index db3f2cfb84..b37f33afe8 100644
--- a/app/Console/Commands/Upgrade/RepairsPostgresSequences.php
+++ b/app/Console/Commands/Upgrade/RepairsPostgresSequences.php
@@ -1,7 +1,7 @@
<?php
/*
- * FixPostgresSequences.php
+ * RepairsPostgresSequences.php
* Copyright (c) 2023 [email protected]
*
* This file is part of Firefly III (https://github.com/firefly-iii).
diff --git a/resources/views/list/groups.twig b/resources/views/list/groups.twig
index 0ef4a4899b..89129cfdfc 100644
--- a/resources/views/list/groups.twig
+++ b/resources/views/list/groups.twig
@@ -263,7 +263,7 @@
{% if currency.id == transaction.currency_id %}
{{ formatAmountBySymbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% endif %}
- {% if currency.id == transaction.foreign_currency_id and null != transaction.destination_balance_after %}
+ {% if currency.id == transaction.foreign_currency_id and null != transaction.destination_balance_after and null != transaction.destination_balance_after %}
{{ formatAmountBySymbol(transaction.destination_balance_after, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }}
{% endif %}