mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Java: Fixed PNE in FileTypeSelector (EA-122910)
This commit is contained in:
+3
@@ -129,6 +129,9 @@ public class FileTypeSelector extends ComboBox<FileTypeInfo> {
|
||||
|
||||
@Override
|
||||
public void customize(JList list, FileTypeInfo info, int index, boolean selected, boolean hasFocus) {
|
||||
if (info == null) {
|
||||
return;
|
||||
}
|
||||
if (info.isNested() && index >= 0) {
|
||||
setIcon(WIDE_EMPTY_ICON);
|
||||
setText(info.getText());
|
||||
|
||||
Reference in New Issue
Block a user