Skip to content

Commit

Permalink
Fix NPE during ova import
Browse files Browse the repository at this point in the history
Signed-off-by: Shubha Kulkarni <shubha.kulkarni@oracle.com>
  • Loading branch information
shubhaOracle committed Dec 6, 2022
1 parent f103f08 commit 472ff95
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,11 @@ public void processEvents(AnsibleReturnValue returnValue,

String taskName = "";
JsonNode eventNode = currentNode.get("event_data");

JsonNode taskNode = eventNode.get("task");
if (taskNode != null) {
taskName = taskNode.textValue();
if (eventNode != null) {
JsonNode taskNode = eventNode.get("task");
if (taskNode != null) {
taskName = taskNode.textValue();
}
}

if (RunnerJsonNode.isEventStart(currentNode) || RunnerJsonNode.playbookStats(currentNode)) {
Expand Down

0 comments on commit 472ff95

Please sign in to comment.