diff --git a/common/src/main/java/us/ajg0702/queue/common/QueueMain.java b/common/src/main/java/us/ajg0702/queue/common/QueueMain.java index 3b0b5a03..3f281c6f 100644 --- a/common/src/main/java/us/ajg0702/queue/common/QueueMain.java +++ b/common/src/main/java/us/ajg0702/queue/common/QueueMain.java @@ -341,6 +341,10 @@ private void constructMessages() { List oldProtocolNames = config.getStringList("protocol-names"); for (String oldProtocolName : oldProtocolNames) { String[] parts = oldProtocolName.split(":"); + if(parts.length != 2) { + logger.warn("Invalid old (in the config) protocol name '" + oldProtocolName + "'. Skipping."); + continue; + } String protocol = parts[0]; String name = parts[1];