diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeChannelInfoItemExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeChannelInfoItemExtractor.java index 8d1720f6d..c683e3af7 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeChannelInfoItemExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeChannelInfoItemExtractor.java @@ -96,8 +96,12 @@ public class YoutubeChannelInfoItemExtractor implements ChannelInfoItemExtractor } if (withHandle) { - return Utils.mixedNumberWordToLong(getTextFromObject( - channelInfoItem.getObject("videoCountText"))); + if (channelInfoItem.has("videoCountText")) { + return Utils.mixedNumberWordToLong(getTextFromObject( + channelInfoItem.getObject("videoCountText"))); + } else { + return -1; + } } return Utils.mixedNumberWordToLong(getTextFromObject(