diff --git a/ExRouter.js b/ExRouter.js index e14aecb99..b3b6a719f 100644 --- a/ExRouter.js +++ b/ExRouter.js @@ -195,7 +195,7 @@ export default class ExRouter extends React.Component { } componentWillUnmount() { - if (this === Actions.currentRouter.delegate) { + if (Actions.currentRouter && this === Actions.currentRouter.delegate) { Actions.currentRouter = null; } }