mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 08:18:52 -05:00
Fix NPE
@see https://www.filebot.net/forums/viewtopic.php?f=6&t=2075&p=20611#p20611
This commit is contained in:
parent
0d34ea8139
commit
c36548cb63
@ -118,7 +118,7 @@ public enum EpisodeMetrics implements SimilarityMetric {
|
||||
Episode e = (Episode) object;
|
||||
|
||||
// don't use title for matching if title equals series name
|
||||
String normalizedToken = normalizeObject(removeTrailingBrackets(e.getTitle()));
|
||||
String normalizedToken = normalizeObject(e.getTitle() == null ? null : removeTrailingBrackets(e.getTitle()));
|
||||
if (normalizedToken.length() >= 4 && !normalizeObject(e.getSeriesName()).contains(normalizedToken)) {
|
||||
return normalizedToken;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user