EA-79040 - IAE: LRUPopupBuilder$.getIconFor

This commit is contained in:
Gregory.Shrago
2016-03-01 18:40:09 +03:00
parent 0d02814fa9
commit 57d1d530c7
@@ -169,13 +169,13 @@ public abstract class LRUPopupBuilder<T> {
new BaseListPopupStep<T>(myTitle, combinedItems) {
@NotNull
@Override
public String getTextFor(@NotNull T t) {
return getPresentation(t).first;
public String getTextFor(T t) {
return t == null ? "" : getPresentation(t).first;
}
@Override
public Icon getIconFor(@NotNull T t) {
return getPresentation(t).second;
public Icon getIconFor(T t) {
return t == null ? null : getPresentation(t).second;
}
@Override