We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7e411d commit 9eff182Copy full SHA for 9eff182
1 file changed
extractor/src/main/java/org/schabi/newpipe/extractor/StreamingService.java
@@ -308,11 +308,11 @@ public final LinkType getLinkTypeByUrl(String url) throws ParsingException {
308
LinkHandlerFactory cH = getChannelLHFactory();
309
LinkHandlerFactory pH = getPlaylistLHFactory();
310
311
- if (sH.acceptUrl(url)) {
+ if (sH != null && sH.acceptUrl(url)) {
312
return LinkType.STREAM;
313
- } else if (cH.acceptUrl(url)) {
+ } else if (cH != null && cH.acceptUrl(url)) {
314
return LinkType.CHANNEL;
315
- } else if (pH.acceptUrl(url)) {
+ } else if (pH != null && pH.acceptUrl(url)) {
316
return LinkType.PLAYLIST;
317
} else {
318
return LinkType.NONE;
0 commit comments