Apparently some devices crash when trying to call xpp.next
This commit is contained in:
parent
c691a999d9
commit
a651317bc2
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue