* added null checks and make sure to verify serienjunkies data

This commit is contained in:
Reinhard Pointner 2012-10-25 19:28:30 +00:00
parent 79bbb75edf
commit 649a9f1e4d
2 changed files with 9 additions and 0 deletions

View File

@ -354,6 +354,10 @@ public enum EpisodeMetrics implements SimilarityMetric {
protected static String normalizeObject(Object object) {
if (object == null) {
return "";
}
String result = transformCache.get(object);
if (result != null) {
return result;

View File

@ -138,6 +138,11 @@ public class SerienjunkiesClient extends AbstractEpisodeListProvider {
title = german;
}
// enforce sanity
if (title == null) {
title = "";
}
episodes.add(new Episode(seriesName, series.getStartDate(), season, episode, title, i + 1, null, airdate));
}