From 59637a248ab334cbb1b4e9e10d46f1de6b59ca5c Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 16 Feb 2012 07:48:38 +0000 Subject: [PATCH] * fix NPE in cell renderer --- .../sourceforge/filebot/ui/rename/RenameListCellRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/ui/rename/RenameListCellRenderer.java b/source/net/sourceforge/filebot/ui/rename/RenameListCellRenderer.java index 7648a9c0..74aae63d 100644 --- a/source/net/sourceforge/filebot/ui/rename/RenameListCellRenderer.java +++ b/source/net/sourceforge/filebot/ui/rename/RenameListCellRenderer.java @@ -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); }