Skip to content

Commit c7c3424

Browse files
committed
Probably bug: access to disposed project
1 parent ae8d977 commit c7c3424

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stepik-union/src/main/java/org/stepik/core/StepikProjectManager.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ public static StepikProjectManager getInstance(@NotNull final Project project) {
128128

129129
@Nullable
130130
public static StudyNode getProjectRoot(@NotNull final Project project) {
131+
if (project.isDisposed()) {
132+
return null;
133+
}
131134
StepikProjectManager instance = getInstance(project);
132135

133136
if (instance == null) {

0 commit comments

Comments
 (0)