* improve rendering a bit
This commit is contained in:
parent
0f2468fc5f
commit
621e07c0f2
|
@ -77,7 +77,7 @@ class RenameListCellRenderer extends DefaultFancyListCellRenderer {
|
|||
}
|
||||
}
|
||||
|
||||
if (renameModel.preserveExtension() && renameModel.hasComplement(index)) {
|
||||
if (renameModel.preserveExtension() && index < renameModel.size() && renameModel.getMatch(index).getCandidate() != null) {
|
||||
typeRenderer.setText(getType(renameModel.getMatch(index).getCandidate()));
|
||||
typeRenderer.setVisible(true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue