Skip to content

Commit

Permalink
Adds null check in cluster changed event sweep (opendistro-for-elasti…
Browse files Browse the repository at this point in the history
  • Loading branch information
dbbaughe committed Dec 10, 2019
1 parent 21a9815 commit 5c089d3
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 5c089d3

Please sign in to comment.