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 Jan 16, 2020
1 parent 871e12a commit fa644f4
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 fa644f4

Please sign in to comment.