Fixed crash in OPML import if 'text' attribute in opml document was

missing
This commit is contained in:
daniel oeh 2012-08-23 15:47:52 +02:00
parent dc5aaefcb2
commit d30bcfff79
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ public class OpmlReader {
element.setHtmlUrl(xpp.getAttributeValue(null, OpmlSymbols.HTMLURL));
element.setType(xpp.getAttributeValue(null, OpmlSymbols.TYPE));
if (element.getXmlUrl() != null) {
if (element.getText() == null) {
Log.i(TAG, "Opml element has no text attribute.");
element.setText(element.getXmlUrl());
}
elementList.add(element);
} else {
if (AppConfig.DEBUG)