Skip to content

Commit

Permalink
Fixed #257. Null check.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregwilmer committed Jul 11, 2018
1 parent 1a10e1a commit 4938780
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ protected String resolveParamsAndHeaders(String text, Message inputMessage) {
Map<String,String> parms = new HashMap<>(getComponentContext().getFlowParameters());
parms.putAll(inputMessage.getHeader().getAsStrings());
parms.put("_sequence", Long.toString(paramFlowSequence++));
parms.putAll(context.getFlowVariables());
if (context.getFlowVariables() != null) {
parms.putAll(context.getFlowVariables());
}
return FormatUtils.replaceTokens(text, parms, true);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ protected String resolveParamsAndHeaders(String text, Message inputMessage) {
Map<String,String> parms = new HashMap<>(getComponentContext().getFlowParameters());
parms.putAll(inputMessage.getHeader().getAsStrings());
parms.put("_sequence", Long.toString(paramFlowSequence++));
parms.putAll(context.getFlowVariables());
if (context.getFlowVariables() != null) {
parms.putAll(context.getFlowVariables());
}
return FormatUtils.replaceTokens(text, parms, true);
}

Expand Down

0 comments on commit 4938780

Please sign in to comment.