Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 8d8f461

Browse files
author
Irene
committed
FIx possible IndexOutOfBounds
1 parent 07e4bcf commit 8d8f461

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/fi/helsinki/cs/tmc/cli/command/ConfigCommand.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ private void setProperties(String[] arguments) {
288288
io.println("Setting property keys:");
289289
for (String argument : arguments) {
290290
String[] parts = argument.split("=", 2);
291+
if (parts.length < 2) {
292+
continue;
293+
}
291294
if (!checkIfAllowedKey(parts[0])) {
292295
continue;
293296
}

0 commit comments

Comments
 (0)