Skip to content

Commit 731d1a1

Browse files
committed
* (Apollon77) Fix crash case reported by Sentry (fixes IOBROKER-SONOFF-2A)
1 parent 05fe8bf commit 731d1a1

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ States:
120120
### __WORK IN PROGRESS__
121121
-->
122122
## Changelog
123+
124+
### __WORK IN PROGRESS__
125+
* (Apollon77) Fix crash case reported by Sentry
126+
127+
123128
### 2.5.0 (2022-03-21)
124129
* (GreatSUN) Implement writing of NSPanel Widget changes
125130
* (Apollon77) Fix crash case reported by Sentry

lib/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ function MQTTServer(adapter) {
281281
adapter.getObject(id, (err, obj) => {
282282
if (!obj) {
283283
adapter.log.warn(`invalid rgbww obj for ${id}`);
284-
} if (typeof state.val !== 'string') {
284+
} else if (typeof state.val !== 'string') {
285285
adapter.log.warn(`invalid rgbww state value for ${id} : ${JSON.stringify(state.val)} needs to be a string`);
286286
} else {
287287
const role = obj.common.role;

0 commit comments

Comments
 (0)