If Integer property not provided, parseValue() should return null.
This commit is contained in:
1 parent
f89020ef0f
commit
882f52a5e2
1 file changed
+4
+4
@@ -49,6 +49,10 @@ public abstract class IntegerGuacamoleProperty implements GuacamoleProperty<Inte
|
||||
@Override
|
||||
public Integer parseValue(String value) throws GuacamoleException {
|
||||
|
||||
// If no property provided, return null.
|
||||
if (value == null)
|
||||
return null;
|
||||
|
||||
try {
|
||||
Integer integer = new Integer(value);
|
||||
return integer;
|
||||
|
||||
Reference in new issue
Block a user