mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
let ProgressManager.checkCanceled() not fail in app absence
e.g. in ultralight unit tests
This commit is contained in:
@@ -201,7 +201,9 @@ public abstract class ProgressManager extends ProgressIndicatorProvider {
|
||||
|
||||
@SuppressWarnings("MethodOverridesStaticMethodOfSuperclass")
|
||||
public static void checkCanceled() throws ProcessCanceledException {
|
||||
getInstance().doCheckCanceled();
|
||||
if (ourInstance != null) {
|
||||
ourInstance.doCheckCanceled();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user