Skip to content

Commit

Permalink
for job NPE fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kurilov committed Jan 10, 2017
1 parent aaa4773 commit 0429b03
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions run/src/main/java/com/emc/mongoose/run/scenario/ForJob.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,12 @@ protected void loadSubTree(final Map<String, Object> subTree)
childJobConfig = ConfigParser.replace(
localConfig, replacePattern, nextValue
);
nextNodeConfig = ConfigParser.replace(
(Map<String, Object>) nodeConfig, replacePattern, nextValue
);
childJobConfig.apply(nextNodeConfig);
if(nodeConfig != null) {
nextNodeConfig = ConfigParser.replace(
(Map<String, Object>) nodeConfig, replacePattern, nextValue
);
childJobConfig.apply(nextNodeConfig);
}
append(
new BasicTaskJob(
() -> LOG.info(
Expand Down

0 comments on commit 0429b03

Please sign in to comment.