|
@@ -167,7 +167,7 @@ public class SearchResponse extends ActionResponse implements StatusToXContent {
|
|
|
* If profiling was enabled, this returns an object containing the profile results from
|
|
|
* each shard. If profiling was not enabled, this will return null
|
|
|
*
|
|
|
- * @return The profile results or null
|
|
|
+ * @return The profile results or an empty map
|
|
|
*/
|
|
|
public @Nullable Map<String, List<ProfileShardResult>> getProfileResults() {
|
|
|
return internalResponse.profile();
|