From bae67ca808a1a05b399ce299aafcca9b61fe2143 Mon Sep 17 00:00:00 2001 From: Igor Motov Date: Thu, 23 Jun 2011 10:51:12 -0400 Subject: [PATCH] Fix NullPointerException when search request partially fails on one or more shards --- .../java/org/elasticsearch/action/search/ShardSearchFailure.java | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/action/search/ShardSearchFailure.java b/modules/elasticsearch/src/main/java/org/elasticsearch/action/search/ShardSearchFailure.java index a41b7b1f583..a750898f00e 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/action/search/ShardSearchFailure.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/action/search/ShardSearchFailure.java @@ -68,6 +68,7 @@ public class ShardSearchFailure implements ShardOperationFailedException { public ShardSearchFailure(String reason, SearchShardTarget shardTarget) { this.shardTarget = shardTarget; this.reason = reason; + this.status = RestStatus.INTERNAL_SERVER_ERROR; } /**