Skip to content

Commit

Permalink
fix(elasticsearch): Fix NPE generated when an entity tag is null (#1509)
Browse files Browse the repository at this point in the history
  • Loading branch information
robzienert committed Mar 10, 2017
1 parent af7e18b commit 79b5f80
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -267,7 +267,7 @@ public void verifyIndex(EntityTags entityTags) {
OperationPoller.retryWithBackoff(o -> {
// verify that the indexed document can be retrieved (accounts for index lag)
Map<String, Object> entityTagsCriteria = new HashMap<>();
entityTags.getTags().forEach(entityTag -> {
entityTags.getTags().stream().filter(entityTag -> entityTag != null && entityTag.getValueType() != null).forEach(entityTag -> {
switch(entityTag.getValueType()) {
case object:
entityTagsCriteria.put(entityTag.getName(), "*");
Expand Down

0 comments on commit 79b5f80

Please sign in to comment.