mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-02 08:25:02 -04: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;
|
Episode e = (Episode) object;
|
||||||
|
|
||||||
// don't use title for matching if title equals series name
|
// 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)) {
|
if (normalizedToken.length() >= 4 && !normalizeObject(e.getSeriesName()).contains(normalizedToken)) {
|
||||||
return normalizedToken;
|
return normalizedToken;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user