diff --git a/js/ui/components/polkitAgent.js b/js/ui/components/polkitAgent.js index 0fa9ba449..2f710df84 100644 --- a/js/ui/components/polkitAgent.js +++ b/js/ui/components/polkitAgent.js @@ -299,7 +299,7 @@ const AuthenticationDialog = new Lang.Class({ }, _onUserChanged: function() { - if (this._user.is_loaded) { + if (this._user.is_loaded && this._userAvatar) { this._userAvatar.update(); this._userAvatar.actor.show(); }