rollback: NPE in painting

This commit is contained in:
Konstantin Bulenkov
2012-04-16 11:10:15 +02:00
parent 854f92a554
commit d25e2c7a2d
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -76,7 +76,7 @@ public class ComboBox extends ComboBoxWithWidePopup implements AWTEventListener
arrowButton.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
if (!isSwingPopup()) {
if (!mySwingPopup) {
e.consume();
setPopupVisible(true);
}
@@ -115,9 +115,6 @@ public class ComboBox extends ComboBoxWithWidePopup implements AWTEventListener
}
});
}
else if (!visible) {
super.setPopupVisible(visible);
}
return;
}