Skip to content

Commit

Permalink
* (Apollon77) Fix crash case reported by Sentry (fixes IOBROKER-HISTO…
Browse files Browse the repository at this point in the history
…RY-3E)
  • Loading branch information
Apollon77 committed May 28, 2022
1 parent 81fdcc5 commit 54af800
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ This adapter saves state history in a two-staged process.
-->

## Changelog
### __WORK IN PROGRESS__
* (Apollon77) Fix crash case reported by Sentry

### 2.1.1 (2022-05-27)
* (Apollon77) Fix crash case reported by Sentry

Expand Down
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ function storeCached(isFinishing, onlyId) {
continue;
}

history[id].list = history[id].list || [];
if (isFinishing) {
if (history[id].skipped && !(history[id][adapter.namespace] && history[id][adapter.namespace].disableSkippedValueLogging)) {
history[id].list.push(history[id].skipped);
Expand Down

0 comments on commit 54af800

Please sign in to comment.