Skip to content

Commit

Permalink
Add array length check when reading port from server.env
Browse files Browse the repository at this point in the history
Signed-off-by: Kathryn Kodama <kathryn.s.kodama@gmail.com>
  • Loading branch information
kathrynkodama committed Nov 25, 2022
1 parent 559f93c commit 5f0296b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ private String readDebugPortFromServerEnv(File serverEnv) throws Exception {
}
if (lastEntry != null) {
String[] parts = lastEntry.split("=");
port = parts[1].trim();
if (parts.length > 1) {
port = parts[1].trim();
}
}
}
}
Expand Down

0 comments on commit 5f0296b

Please sign in to comment.