Fix ArrayIndexOutOfBounds for in startByName
This commit is contained in:
parent
62602b552f
commit
68e8f3770e
|
@ -271,6 +271,9 @@ public class RecorderServlet extends AbstractCtbrecServlet {
|
|||
|
||||
private void startByName(Request request) throws InvalidKeyException, NoSuchAlgorithmException, IOException {
|
||||
String[] input = request.model.getUrl().split(":");
|
||||
if (input.length != 2) {
|
||||
throw new IllegalArgumentException("Invalid input. Should be site:model");
|
||||
}
|
||||
String siteName = input[0];
|
||||
String modelName = input[1];
|
||||
for (Site site : sites) {
|
||||
|
|
Loading…
Reference in New Issue