diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfo.java b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfo.java index 506bee53..439ade43 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfo.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfo.java @@ -24,9 +24,9 @@ public class CommentsInfo extends ListInfo { return getInfo(NewPipe.getServiceByUrl(url), url); } - public static CommentsInfo getInfo(final StreamingService serviceByUrl, final String url) + public static CommentsInfo getInfo(final StreamingService service, final String url) throws ExtractionException, IOException { - return getInfo(serviceByUrl.getCommentsExtractor(url)); + return getInfo(service.getCommentsExtractor(url)); } public static CommentsInfo getInfo(final CommentsExtractor commentsExtractor) @@ -63,7 +63,7 @@ public class CommentsInfo extends ListInfo { final StreamingService service, final CommentsInfo commentsInfo, final Page page) throws IOException, ExtractionException { - if (null == commentsInfo.getCommentsExtractor()) { + if (commentsInfo.getCommentsExtractor() == null) { commentsInfo.setCommentsExtractor(service.getCommentsExtractor(commentsInfo.getUrl())); commentsInfo.getCommentsExtractor().fetchPage(); }