diff --git a/src/components/views/rooms/Stickerpicker.js b/src/components/views/rooms/Stickerpicker.js index 12917e209d..fe99a18d92 100644 --- a/src/components/views/rooms/Stickerpicker.js +++ b/src/components/views/rooms/Stickerpicker.js @@ -90,7 +90,9 @@ export default class Stickerpicker extends React.Component { } componentWillUnmount() { - dis.unregister(this.dispatcherRef); + if (this.dispatcherRef) { + dis.unregister(this.dispatcherRef); + } } _imError(errorMsg, e) {