Apparently some devices crash when trying to call xpp.next

This commit is contained in:
ByteHamster 2021-11-06 17:37:04 +01:00
parent c691a999d9
commit a651317bc2
1 changed files with 6 additions and 1 deletions

View File

@ -73,7 +73,12 @@ public class TypeGetter {
throw new UnsupportedFeedtypeException(Type.INVALID, tag); throw new UnsupportedFeedtypeException(Type.INVALID, tag);
} }
} else { } 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) { } catch (XmlPullParserException e) {