mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
If Integer property not provided, parseValue() should return null.
This commit is contained in:
@@ -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