[ui] logs incorrect action button icon; follow-up (EA-107137)

This commit is contained in:
Roman Shevchenko
2018-03-20 15:59:39 +01:00
parent e5c3819e76
commit be0691205f
@@ -265,7 +265,7 @@ public class ActionButton extends JComponent implements ActionButtonComponent, A
if (myPresentation.getDisabledIcon() != null) { // set disabled icon if it is specified
myDisabledIcon = myPresentation.getDisabledIcon();
}
else if (IconLoader.isGoodSize(myIcon)) {
else if (myIcon == null || IconLoader.isGoodSize(myIcon)) {
myDisabledIcon = IconLoader.getDisabledIcon(myIcon);
}
else {