* improve rendering a bit

This commit is contained in:
Reinhard Pointner 2012-02-23 04:59:50 +00:00
parent 0f2468fc5f
commit 621e07c0f2
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}