We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b089e4 commit a3649f3Copy full SHA for a3649f3
1 file changed
src/main/java/mServer/crawler/sender/zdf/json/ZdfPubFormDeserializer.java
@@ -25,8 +25,10 @@ public ZdfPubFormResult deserialize(
25
26
for (JsonElement element : nodes) {
27
JsonObject node = element.getAsJsonObject();
28
- final Optional<String> sender =
29
- JsonUtils.getElementValueAsString(node.getAsJsonObject("contentOwner"), "title");
+ final Optional<String> sender = Optional.empty();
+ if (!node.get("contentOwner").isJsonNull()) {
30
+ JsonUtils.getElementValueAsString(node.getAsJsonObject("contentOwner"), "title");
31
+ }
32
final Optional<String> topic = JsonUtils.getElementValueAsString(node, "title");
33
final Optional<String> countSeasons = JsonUtils.getElementValueAsString(node, "countSeasons");
34
if (ZdfConstants.PARTNER_TO_SENDER.containsKey(sender.orElse("ZDF"))) {
0 commit comments