Skip to content

Commit 0549565

Browse files
committed
Don't queue a configuration update when the project is disposed, e.g. when replacing current project with a new one that is opened in the same window (#164)
1 parent 019ba95 commit 0549565

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/com/intellij/lang/jsgraphql/ide/project/graphqlconfig/GraphQLConfigManager.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,9 @@ public void run(@NotNull ProgressIndicator indicator) {
489489
});
490490
}
491491
};
492-
ProgressManager.getInstance().run(task);
492+
if (!myProject.isDisposed()) {
493+
ProgressManager.getInstance().run(task);
494+
}
493495
}, ModalityState.NON_MODAL);
494496
}
495497

0 commit comments

Comments
 (0)