Skip to content
Permalink
Browse files
ATEN-487: fixed NPE when filtering for alternative account number
  • Loading branch information
mgeiss committed Oct 15, 2017
1 parent 4d97fb3 commit 326b8cd89c24cab7dedb80467aeded859b8f399b
Showing 1 changed file with 2 additions and 1 deletion.
@@ -56,7 +56,8 @@ public Optional<Account> findAccount(final String accountIdentifier) {

return accountPage.getAccounts()
.stream()
.filter(account -> account.getAlternativeAccountNumber().equals(accountIdentifier))
.filter(account -> account.getAlternativeAccountNumber() != null
&& account.getAlternativeAccountNumber().equals(accountIdentifier))
.findFirst();
}
}

0 comments on commit 326b8cd

Please sign in to comment.