The concatenation took precedence over the null check, leading to an NPE because `null` was passed to `ExceptionsHelper.stackTrace(failure))`.
This commit is contained in:
parent
7360a58b49
commit
d173ba6b2d
|
@ -43,7 +43,7 @@ public class FailedShard {
|
|||
@Override
|
||||
public String toString() {
|
||||
return "failed shard, shard " + routingEntry + ", message [" + message + "], failure [" +
|
||||
failure == null ? "null" : ExceptionsHelper.detailedMessage(failure) + "], markAsStale [" + markAsStale + "]";
|
||||
(failure == null ? "null" : ExceptionsHelper.detailedMessage(failure)) + "], markAsStale [" + markAsStale + "]";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue