mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Avoid EmptyStackException
This commit is contained in:
@@ -885,7 +885,7 @@ public final class ToolWindowManagerImpl extends ToolWindowManagerEx implements
|
||||
|
||||
myActiveStack.remove(id, false); // hidden window should be at the top of stack
|
||||
|
||||
if (wasActive && moveFocus) {
|
||||
if (wasActive && moveFocus && !myActiveStack.isEmpty()) {
|
||||
final String toBeActivatedId = myActiveStack.pop();
|
||||
if (getInfo(toBeActivatedId).isVisible() || isStackEnabled()) {
|
||||
activateToolWindowImpl(toBeActivatedId, commandList, false, true);
|
||||
|
||||
Reference in New Issue
Block a user