diff --git a/guacamole/src/main/java/net/sourceforge/guacamole/net/basic/xml/protocol/ParamTagHandler.java b/guacamole/src/main/java/net/sourceforge/guacamole/net/basic/xml/protocol/ParamTagHandler.java index 4e5fb4c5d..4c29ce16a 100644 --- a/guacamole/src/main/java/net/sourceforge/guacamole/net/basic/xml/protocol/ParamTagHandler.java +++ b/guacamole/src/main/java/net/sourceforge/guacamole/net/basic/xml/protocol/ParamTagHandler.java @@ -62,8 +62,13 @@ public class ParamTagHandler implements TagHandler { protocolParameter.setType(ProtocolParameter.Type.ENUM); // Boolean field - else if ("boolean".equals(type)) + else if ("boolean".equals(type)) { protocolParameter.setType(ProtocolParameter.Type.BOOLEAN); + + if(protocolParameter.getValue() == null) + throw new SAXException + ("A value is required for the boolean parameter type."); + } // Otherwise, fail with unrecognized type else