diff options
-rw-r--r-- | gradle.properties | 2 | ||||
-rw-r--r-- | src/main/java/ganarchy/friendcode/sam/I2PSamCommand.java | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gradle.properties b/gradle.properties index 4f87cf7..1d72a4f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G loader_version=0.14.8 # Mod Properties - mod_version = 1.0.1 + mod_version = 1.1.0-SNAPSHOT maven_group = ganarchy.friendcode.mc_1_19 archives_base_name = friendcode-mc1.19 diff --git a/src/main/java/ganarchy/friendcode/sam/I2PSamCommand.java b/src/main/java/ganarchy/friendcode/sam/I2PSamCommand.java index bed5bb8..b1cece8 100644 --- a/src/main/java/ganarchy/friendcode/sam/I2PSamCommand.java +++ b/src/main/java/ganarchy/friendcode/sam/I2PSamCommand.java @@ -45,6 +45,10 @@ record I2PSamCommand(String name, String opcode, Map<String, String> parameters) throw new IllegalArgumentException("name must not be empty"); } + if (this.parameters.containsKey("")) { + throw new IllegalArgumentException("parameter key must not be empty"); + } + // check for PING/PONG if (this.name.equals("PING") || this.name.equals("PONG")) { // reject parameters |