mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
obey benign race rules in ProgressManager.checkCanceled (IDEA-CR-20502)
This commit is contained in:
@@ -201,8 +201,9 @@ public abstract class ProgressManager extends ProgressIndicatorProvider {
|
||||
|
||||
@SuppressWarnings("MethodOverridesStaticMethodOfSuperclass")
|
||||
public static void checkCanceled() throws ProcessCanceledException {
|
||||
if (ourInstance != null) {
|
||||
ourInstance.doCheckCanceled();
|
||||
ProgressManager instance = ourInstance;
|
||||
if (instance != null) {
|
||||
instance.doCheckCanceled();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user