fix one exception from IDEA-116497

(cherry picked from commit 1c6e2fa2aa81ba3c01c8660715e987f7b599fce1)
This commit is contained in:
Konstantin Bulenkov
2013-11-22 17:32:05 +01:00
parent 58da86dfe8
commit 64636bb9ef
@@ -1027,6 +1027,10 @@ public class Switcher extends AnAction implements DumbAware {
public void propertyChange(PropertyChangeEvent evt) {
final MyList list = getSelectedList();
final Object value = list.getSelectedValue();
if (project.isDisposed()) {
myPopup.cancel();
return;
}
((NameFilteringListModel)files.getModel()).refilter();
((NameFilteringListModel)toolWindows.getModel()).refilter();
if (files.getModel().getSize() + toolWindows.getModel().getSize() == 0) {