Skip to content

Commit 12395a9

Browse files
committed
Fixes NPE in multi node qa testt
1 parent 04798e2 commit 12395a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

x-pack/plugin/ilm/qa/multi-node/src/test/java/org/elasticsearch/xpack/indexlifecycle/TimeSeriesLifecycleActionsIT.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,10 @@ public void testNonexistentPolicy() throws Exception {
288288
assertNull(indexStatus.get("phase"));
289289
assertNull(indexStatus.get("action"));
290290
assertNull(indexStatus.get("step"));
291-
assertEquals("policy [does_not_exist] does not exist",
292-
((Map<String, String>)indexStatus.get("step_info")).get("reason"));
293-
assertEquals("illegal_argument_exception",
294-
((Map<String, String>)indexStatus.get("step_info")).get("type"));
291+
Map<String, String> stepInfo = (Map<String, String>) indexStatus.get("step_info");
292+
assertNotNull(stepInfo);
293+
assertEquals("policy [does_not_exist] does not exist", stepInfo.get("reason"));
294+
assertEquals("illegal_argument_exception", stepInfo.get("type"));
295295
});
296296

297297
}

0 commit comments

Comments
 (0)