Skip to content

Commit 4050c19

Browse files
committed
test: Prevent NullPointerException in waitForKeyNotPresent
1 parent bef94ef commit 4050c19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

algoliasearch-tests/src/test/java/com/algolia/search/integration/common/async/AsyncApiKeysTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ private void waitForKeyNotPresent(AsyncIndex<AlgoliaObject> index, String descri
6161
.get(WAIT_TIME_IN_SECONDS, SECONDS)
6262
.stream()
6363
.map(ApiKey::getDescription)
64+
.filter(k -> k != null)
6465
.anyMatch(k -> k.equals(description));
6566
if (!found) {
6667
return;

0 commit comments

Comments
 (0)