From c78f647b8a033f28a236e23c3f11bce975e13217 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 22 May 2017 23:10:33 +0800 Subject: [PATCH] Fix NPE --- source/net/filebot/web/TheTVDBClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/web/TheTVDBClient.java b/source/net/filebot/web/TheTVDBClient.java index c3a12b0c..1560a806 100644 --- a/source/net/filebot/web/TheTVDBClient.java +++ b/source/net/filebot/web/TheTVDBClient.java @@ -130,8 +130,8 @@ public class TheTVDBClient extends AbstractEpisodeListProvider implements Artwor String seriesName = getString(it, "seriesName"); String[] aliasNames = stream(getArray(it, "aliases")).toArray(String[]::new); - if (seriesName.startsWith("**") && seriesName.endsWith("**")) { - debug.fine(format("Invalid series: %s [%d]", seriesName, id)); + if (seriesName == null || seriesName.startsWith("**") || seriesName.endsWith("**")) { + debug.warning(format("Ignore invalid series: %s [%d]", seriesName, id)); return null; }