Added assertion for request to show a popup when it is already shown

This commit is contained in:
Sergey Malenkov
2015-02-10 13:21:19 +03:00
parent 0205368d17
commit 75e00d5caa
@@ -703,6 +703,7 @@ public class AbstractPopup implements JBPopup {
}
assert ApplicationManager.getApplication().isDispatchThread();
assert myState == State.INIT : "Popup was already shown. Recreate a new instance to show again.";
debugState("show popup", State.INIT);
myState = State.SHOWING;