Fix NullPointerException
This commit is contained in:
parent
4a91e29dcf
commit
b93910081f
1 changed files with 7 additions and 3 deletions
|
@ -59,12 +59,16 @@ public class SoundcloudChannelExtractor extends ChannelExtractor {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getBannerUrl() throws ParsingException {
|
public String getBannerUrl() {
|
||||||
|
try {
|
||||||
return user.getObject("visuals").getArray("visuals").getObject(0).getString("visual_url", "");
|
return user.getObject("visuals").getArray("visuals").getObject(0).getString("visual_url", "");
|
||||||
|
} catch (NullPointerException e) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getFeedUrl() throws ParsingException {
|
public String getFeedUrl() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue