From a651317bc24cfdafca9d78082b44e6258e2f4551 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sat, 6 Nov 2021 17:37:04 +0100 Subject: [PATCH] Apparently some devices crash when trying to call xpp.next --- .../de/danoeh/antennapod/parser/feed/util/TypeGetter.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/util/TypeGetter.java b/parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/util/TypeGetter.java index 12834f94f..714dbb9ac 100644 --- a/parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/util/TypeGetter.java +++ b/parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/util/TypeGetter.java @@ -73,7 +73,12 @@ public class TypeGetter { throw new UnsupportedFeedtypeException(Type.INVALID, tag); } } else { - eventType = xpp.next(); + try { + eventType = xpp.next(); + } catch (RuntimeException e) { + // Apparently this happens on some devices... + throw new UnsupportedFeedtypeException("Unable to get type"); + } } } } catch (XmlPullParserException e) {