mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
Ticket #307: Added a specific check to make sure that the value is set for boolean parameters.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user