Fix build and improve exception handling (#10726)
The PercentType and QuantityType can also throw an IllegalArgumentException. Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -457,7 +457,7 @@ public class IAqualinkHandler extends BaseThingHandler {
|
||||
default:
|
||||
return StringType.valueOf(value);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
} catch (IllegalArgumentException e) {
|
||||
return UnDefType.UNDEF;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user