diff --git a/src/app/components/utils/ReactMutationObserver.jsx b/src/app/components/utils/ReactMutationObserver.jsx index c81e0af4dea9d33f5dba92f402befa721e3b9ae5..d625b723c6bd2c21604645a6a9ca2aec9c693756 100644 --- a/src/app/components/utils/ReactMutationObserver.jsx +++ b/src/app/components/utils/ReactMutationObserver.jsx @@ -94,7 +94,10 @@ class ReactMutationObserver extends React.Component { } initObserver(componentElement) { - if (typeof MutationObserver !== 'undefined') { + if ( + typeof MutationObserver !== 'undefined' && + componentElement !== null + ) { this.observer.observe(componentElement, this.observerConfig); } }