Skip to content

Commit

Permalink
fix: Exception when cosmicDock.stateObj may be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
mmstick committed Sep 28, 2022
1 parent 14b0987 commit 7f02ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications.js
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ var CosmicAppsDialog = GObject.registerClass({
this.close();

const cosmicDock = Main.extensionManager.lookup("[email protected]");
if (cosmicDock && cosmicDock.state === ExtensionState.ENABLED) {
if (cosmicDock && cosmicDock.state === ExtensionState.ENABLED && cosmicDock.stateObj) {
const dockManager = cosmicDock.stateObj.dockManager
if (dockManager) {
dockManager._allDocks.forEach((dock) => dock._onOverviewHiding())
Expand Down

0 comments on commit 7f02ac8

Please sign in to comment.