File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/main/java/info/unterrainer/commons/mqttclient Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 17
17
18
18
<modelVersion >4.0.0</modelVersion >
19
19
<artifactId >mqtt-client</artifactId >
20
- <version >0.1.3 </version >
20
+ <version >0.1.4 </version >
21
21
<name >MqttClient</name >
22
22
<packaging >jar</packaging >
23
23
30
30
<dependency >
31
31
<groupId >info.unterrainer.commons</groupId >
32
32
<artifactId >serialization</artifactId >
33
- <version >0.2.0 </version >
33
+ <version >0.2.1 </version >
34
34
</dependency >
35
35
<dependency >
36
36
<groupId >org.eclipse.paho</groupId >
Original file line number Diff line number Diff line change @@ -159,10 +159,11 @@ else if (stringValue.trim() == "1")
159
159
v = Boolean .parseBoolean (stringValue );
160
160
} catch (NumberFormatException e1 ) {
161
161
log .warn ("Error parsing to type [{}]. Falling back to string." , type .getSimpleName ());
162
+ // Fallback is String.
163
+ setter .accept (actualTopic , (T ) String .class .cast (v ));
164
+ return ;
162
165
}
163
166
}
164
-
165
- // Fallback is String.
166
167
setter .accept (actualTopic , (T ) type .cast (v ));
167
168
});
168
169
}
You can’t perform that action at this time.
0 commit comments