Commit b9391008 authored by wb9688's avatar wb9688
Browse files

Fix NullPointerException

parent 4a91e29d
......@@ -59,12 +59,16 @@ public class SoundcloudChannelExtractor extends ChannelExtractor {
}
@Override
public String getBannerUrl() throws ParsingException {
return user.getObject("visuals").getArray("visuals").getObject(0).getString("visual_url", "");
public String getBannerUrl() {
try {
return user.getObject("visuals").getArray("visuals").getObject(0).getString("visual_url", "");
} catch (NullPointerException e) {
return null;
}
}
@Override
public String getFeedUrl() throws ParsingException {
public String getFeedUrl() {
return null;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment