fixed NPE for services where comments is not available
This commit is contained in:
@@ -122,7 +122,11 @@ public abstract class StreamingService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public CommentsExtractor getCommentsExtractor(String url) throws ExtractionException {
|
public CommentsExtractor getCommentsExtractor(String url) throws ExtractionException {
|
||||||
return getCommentsExtractor(getCommentsLHFactory().fromUrl(url));
|
ListLinkHandlerFactory llhf = getCommentsLHFactory();
|
||||||
|
if(null == llhf) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return getCommentsExtractor(llhf.fromUrl(url));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user