Introduce Type Alias: Fix NPE during dialog repaint

#KT-14696 Fixed
This commit is contained in:
Alexey Sedunov
2016-11-11 15:20:32 +03:00
parent 939532b6f3
commit 7a38dfadba
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -9,6 +9,7 @@
###### Issues fixed
- [`KT-14693`](https://youtrack.jetbrains.com/issue/KT-14693) Introduce Type Alias: Do not suggest type qualifiers
- [`KT-14696`](https://youtrack.jetbrains.com/issue/KT-14696) Introduce Type Alias: Fix NPE during dialog repaint
## 1.1-M03 (EAP-3)
@@ -137,7 +137,7 @@ public class KotlinIntroduceTypeAliasDialog extends DialogWrapper {
boolean isSelected,
boolean cellHasFocus
) {
String tokenValue = ((KtModifierKeywordToken) value).getValue();
String tokenValue = value != null ? ((KtModifierKeywordToken) value).getValue() : null;
return super.getListCellRendererComponent(list, tokenValue, index, isSelected, cellHasFocus);
}
}