mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-13 13:50:33 +05:30
fix npe in fetching service by url
This commit is contained in:
parent
e7e411dc29
commit
9eff18252b
@ -308,11 +308,11 @@ public abstract class StreamingService {
|
||||
LinkHandlerFactory cH = getChannelLHFactory();
|
||||
LinkHandlerFactory pH = getPlaylistLHFactory();
|
||||
|
||||
if (sH.acceptUrl(url)) {
|
||||
if (sH != null && sH.acceptUrl(url)) {
|
||||
return LinkType.STREAM;
|
||||
} else if (cH.acceptUrl(url)) {
|
||||
} else if (cH != null && cH.acceptUrl(url)) {
|
||||
return LinkType.CHANNEL;
|
||||
} else if (pH.acceptUrl(url)) {
|
||||
} else if (pH != null && pH.acceptUrl(url)) {
|
||||
return LinkType.PLAYLIST;
|
||||
} else {
|
||||
return LinkType.NONE;
|
||||
|
Loading…
Reference in New Issue
Block a user