fixed NPE for services where comments is not available
This commit is contained in:
parent
4794e16dcb
commit
e04787f340
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue