diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d129716..315851f8 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Only update clock once per minute when seconds aren't shown ### Fixed +- fixed uncaught exception, race condition on module update - fixed issue [#1696](https://github.com/MichMich/MagicMirror/issues/1696), some ical files start date to not parse to date type - Allowance HTML5 autoplay-policy (policy is changed from Chrome 66 updates) - Handle SIGTERM messages diff --git a/js/main.js b/js/main.js index 3d42732e..b811f937 100644 --- a/js/main.js +++ b/js/main.js @@ -203,6 +203,7 @@ var MM = (function() { */ var updateModuleContent = function(module, newHeader, newContent) { var moduleWrapper = document.getElementById(module.identifier); + if (moduleWrapper === null) return; var headerWrapper = moduleWrapper.getElementsByClassName("module-header"); var contentWrapper = moduleWrapper.getElementsByClassName("module-content");