Skip to content

Commit

Permalink
Fix index out of bounds exception
Browse files Browse the repository at this point in the history
  • Loading branch information
dmetzgar committed May 13, 2020
1 parent 964ea69 commit 8d3774c
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 8d3774c

Please sign in to comment.