CPP-17180 Create featured lazy icons in breadcrumbs

- fix NPE

GitOrigin-RevId: 1cc8f17e7ecf66601c8a228bcc5271cee85bee6c
This commit is contained in:
Alexey Utkin
2019-08-22 01:50:10 +03:00
committed by intellij-monorepo-bot
parent 1297608dd8
commit 70e35d9725
@@ -379,8 +379,14 @@ public class Breadcrumbs extends JBPanelWithEmptyText {
private void update() {
icon = crumb.getIcon();
crumbIconWidth = icon.getIconWidth();
crumbIconHeight = icon.getIconHeight();
if (icon != null) {
crumbIconWidth = icon.getIconWidth();
crumbIconHeight = icon.getIconHeight();
}
else {
crumbIconWidth = 0;
crumbIconHeight = 0;
}
text = crumb.getText();
font = getFont(crumb);
foreground = getForeground(crumb);