1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-01-11 05:48:01 -05:00

Avoid NPE

This commit is contained in:
Reinhard Pointner 2016-11-14 00:33:39 +08:00
parent 7feeb0a3be
commit e346e199c3

View File

@ -283,8 +283,10 @@ public class RenamePanel extends JComponent {
Match<Object, File> match = renameModel.getMatch(list.getSelectedIndex());
Map<File, Object> context = renameModel.getMatchContext(match);
MediaBindingBean sample = new MediaBindingBean(match.getValue(), match.getCandidate(), context);
showFormatEditor(sample);
if (match.getValue() != null) {
MediaBindingBean sample = new MediaBindingBean(match.getValue(), match.getCandidate(), context);
showFormatEditor(sample);
}
}
}
}));