You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mqtt.generic/src/main/java/org/openhab/binding/mqtt/generic/values/TextValue.java
+5-1
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,11 @@ public State parseMessage(Command command) throws IllegalArgumentException {
106
106
finalSet<String> states = this.states;
107
107
StringvalueStr = command.toString();
108
108
if (states != null && !states.contains(valueStr)) {
109
-
thrownewIllegalArgumentException("Value " + valueStr + " not within range");
109
+
if (valueStr.isEmpty()) {
110
+
returnUnDefType.NULL;
111
+
} else {
112
+
thrownewIllegalArgumentException("Value " + valueStr + " not within range");
0 commit comments