Skip to content

Commit

Permalink
Merge pull request #1234 from dmetzgar/fix-tracecontextcorrelation
Browse files Browse the repository at this point in the history
Fix index out of bounds exception
  • Loading branch information
trask authored May 18, 2020
2 parents 964ea69 + 8d3774c commit 67ff6be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ public static String generateChildDependencyTarget(String requestContext) {
String[] keyValue = requestContext.split("=");

String headerAppID = null;
if (keyValue[0].equals(REQUEST_CONTEXT_HEADER_APPID_KEY)) {
if (keyValue.length == 2 && keyValue[0].equals(REQUEST_CONTEXT_HEADER_APPID_KEY)) {
headerAppID = keyValue[1];
}

Expand Down

0 comments on commit 67ff6be

Please sign in to comment.