From 0429b037a9fef05566c88b4b48e2fb9def042de2 Mon Sep 17 00:00:00 2001 From: Andrey Kurilov Date: Tue, 10 Jan 2017 13:45:19 +0300 Subject: [PATCH] for job NPE fix --- .../java/com/emc/mongoose/run/scenario/ForJob.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/run/src/main/java/com/emc/mongoose/run/scenario/ForJob.java b/run/src/main/java/com/emc/mongoose/run/scenario/ForJob.java index 9209a5872d..573dba6944 100644 --- a/run/src/main/java/com/emc/mongoose/run/scenario/ForJob.java +++ b/run/src/main/java/com/emc/mongoose/run/scenario/ForJob.java @@ -214,10 +214,12 @@ protected void loadSubTree(final Map subTree) childJobConfig = ConfigParser.replace( localConfig, replacePattern, nextValue ); - nextNodeConfig = ConfigParser.replace( - (Map) nodeConfig, replacePattern, nextValue - ); - childJobConfig.apply(nextNodeConfig); + if(nodeConfig != null) { + nextNodeConfig = ConfigParser.replace( + (Map) nodeConfig, replacePattern, nextValue + ); + childJobConfig.apply(nextNodeConfig); + } append( new BasicTaskJob( () -> LOG.info(