mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE in startup dialog fixed
This commit is contained in:
@@ -235,7 +235,12 @@ public abstract class DialogWrapper {
|
||||
|
||||
protected DialogWrapper(Project project, boolean canBeParent, boolean applicationModalIfPossible) {
|
||||
ensureEventDispatchThread();
|
||||
myPeer = createPeer(WindowManager.getInstance().suggestParentWindow(project), canBeParent, applicationModalIfPossible);
|
||||
if (ApplicationManager.getApplication() != null) {
|
||||
myPeer = createPeer(WindowManager.getInstance().suggestParentWindow(project), canBeParent, applicationModalIfPossible);
|
||||
}
|
||||
else {
|
||||
myPeer = createPeer(null, canBeParent, applicationModalIfPossible);
|
||||
}
|
||||
createDefaultActions();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user