Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Adds null check in cluster changed event sweep (#125) (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbbaughe authored Dec 10, 2019
1 parent 21a9815 commit 36623ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class ManagedIndexCoordinator(
@OpenForTesting
suspend fun sweepClusterChangedEvent(event: ClusterChangedEvent) {
val indicesDeletedRequests = event.indicesDeleted()
.filter { event.previousState().metaData().index(it).getPolicyID() != null }
.filter { event.previousState().metaData().index(it)?.getPolicyID() != null }
.map { deleteManagedIndexRequest(it.uuid) }

/*
Expand Down

0 comments on commit 36623ba

Please sign in to comment.