mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-27 23:40:36 +05:30
Fix NullPointerException
This commit is contained in:
parent
4a91e29dcf
commit
b93910081f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user