* fix NPE in cell renderer
This commit is contained in:
parent
dd9e0bdc22
commit
59637a248a
|
@ -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.setText(getType(renameModel.getMatch(index).getCandidate()));
|
||||||
typeRenderer.setVisible(true);
|
typeRenderer.setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue