File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/action Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ static GetDeploymentStatsAction.Response addFailedRoutes(
231231 }
232232 }
233233
234- updatedNodeStats .sort (Comparator .comparing (n -> n .getNode (). getId ()));
234+ updatedNodeStats .sort (Comparator .comparing (n -> n .getNode () != null ? n . getNode (). getId () : "" ));
235235 updatedAssignmentStats .add (
236236 new AssignmentStats (
237237 stat .getDeploymentId (),
@@ -270,7 +270,7 @@ static GetDeploymentStatsAction.Response addFailedRoutes(
270270 );
271271 }
272272
273- nodeStats .sort (Comparator .comparing (n -> n .getNode (). getId ()));
273+ nodeStats .sort (Comparator .comparing (n -> n .getNode () != null ? n . getNode (). getId () : "" ));
274274
275275 updatedAssignmentStats .add (
276276 new AssignmentStats (
You can’t perform that action at this time.
0 commit comments