Skip to content

Firefly III: a personal finances manager

Catch unset row.

James Coledbb5cdb9cf32
diff --git a/app/Import/Specifics/AbnAmroDescription.php b/app/Import/Specifics/AbnAmroDescription.php
index 054973c292..066a921dec 100644
--- a/app/Import/Specifics/AbnAmroDescription.php
+++ b/app/Import/Specifics/AbnAmroDescription.php
@@ -50,9 +50,15 @@ class AbnAmroDescription implements SpecificInterface
public function run(array $row): array
{
$this->row = $row;
+
+ if (!isset($row[7])) {
+ return $row;
+ }
+
// Try to parse the description in known formats.
$parsed = $this->parseSepaDescription() || $this->parseTRTPDescription() || $this->parseGEABEADescription() || $this->parseABNAMRODescription();
+
// If the description could not be parsed, specify an unknown opposing
// account, as an opposing account is required
if (!$parsed) {