Should fix the last issues.

This commit is contained in:
James Cole
2015-07-06 18:57:15 +02:00
parent 52df2edc8f
commit af13d1943f
2 changed files with 4 additions and 4 deletions

View File

@@ -406,7 +406,7 @@ class AccountRepository implements AccountRepositoryInterface
'iban' => '',
];
$opposing = $this->storeAccount($opposingData);
if (!is_null($opposing)) {
if (!is_null($opposing) && !is_null($newAccount)) {
$this->storeInitialBalance($newAccount, $opposing, $data);
}