mirror of https://github.com/readrops/Readrops.git
Fixing atom feed getUrl() method when links has only one element
This commit is contained in:
parent
287abcafc0
commit
edbff99c4f
|
@ -93,11 +93,15 @@ public class ATOMFeed extends AFeed {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUrl() {
|
public String getUrl() {
|
||||||
if (links.size() > 1) {
|
if (links.size() > 0) {
|
||||||
if (links.get(0).getRel() != null)
|
if (links.get(0).getRel() != null)
|
||||||
return links.get(0).getHref();
|
return links.get(0).getHref();
|
||||||
else
|
else {
|
||||||
|
if (links.size() > 1)
|
||||||
return links.get(1).getHref();
|
return links.get(1).getHref();
|
||||||
|
else
|
||||||
|
return null;
|
||||||
|
}
|
||||||
} else
|
} else
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue