* fix NPE in cell renderer

This commit is contained in:
Reinhard Pointner 2012-02-16 07:48:38 +00:00
parent dd9e0bdc22
commit 59637a248a
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class RenameListCellRenderer extends DefaultFancyListCellRenderer {
}
}
if (renameModel.preserveExtension()) {
if (renameModel.preserveExtension() && renameModel.getMatch(index).getCandidate() != null) {
typeRenderer.setText(getType(renameModel.getMatch(index).getCandidate()));
typeRenderer.setVisible(true);
}