Skip to content

Commit

Permalink
bring back null check (#1940)
Browse files Browse the repository at this point in the history
Undo the removal in
#1933
- as there is a chance that this is a separate issue.
  • Loading branch information
rpdome authored Nov 7, 2023
1 parent f64aa80 commit d1c1b88
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ public List<ICacheRecord> filter(@NonNull List<ICacheRecord> records) {
final String acctHomeAccountId = cacheRecord.getAccount().getHomeAccountId();
final String acctLocalAccountId = cacheRecord.getAccount().getLocalAccountId();

if (!acctHomeAccountId.contains(acctLocalAccountId)) {
// TODO: check the logic on broker side to make sure this value is NOT null.
if (acctLocalAccountId != null &&
!acctHomeAccountId.contains(acctLocalAccountId)) {
result.add(cacheRecord);
}
}
Expand Down

0 comments on commit d1c1b88

Please sign in to comment.