2
0
mirror of https://github.com/TeamNewPipe/NewPipeExtractor synced 2025-09-02 23:35:50 +00:00

Throw IllegalArgumentException when url is null in LinkHandlerFactory

This commit is contained in:
TobiGr
2020-01-20 21:25:16 +01:00
parent 39de55dcd3
commit 7943130307

View File

@@ -43,6 +43,7 @@ public abstract class LinkHandlerFactory {
///////////////////////////////////
public LinkHandler fromUrl(String url) throws ParsingException {
if (url == null) throw new IllegalArgumentException("url can not be null");
final String baseUrl = Utils.getBaseUrl(url);
return fromUrl(url, baseUrl);
}