Skip to content

Firefly III: a personal finances manager

Dumb nullpointer

James Coleb32d9aab34fc
diff --git a/app/Support/Http/Api/ExchangeRateConverter.php b/app/Support/Http/Api/ExchangeRateConverter.php
index c64e8f34e3..e429def2a7 100644
--- a/app/Support/Http/Api/ExchangeRateConverter.php
+++ b/app/Support/Http/Api/ExchangeRateConverter.php
@@ -187,7 +187,7 @@ class ExchangeRateConverter
if ('' === $rate) {
return null;
}
- if (0 === bccomp('0', $preparedRate)) {
+ if (0 === bccomp('0', $rate)) {
return null;
}