From f57d9d43ceb0ef329fc3959226c9db3f626a061b Mon Sep 17 00:00:00 2001 From: 7FM <> Date: Sat, 21 Dec 2019 13:17:58 +0100 Subject: [PATCH] fix switching on null causing NPE --- .../services/youtube/extractors/YoutubeStreamExtractor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java index 671db465d..23566f676 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java @@ -662,7 +662,7 @@ public class YoutubeStreamExtractor extends StreamExtractor { } } - return errorReason != null ? errorReason.toString() : null; + return errorReason != null ? errorReason.toString() : ""; } /*//////////////////////////////////////////////////////////////////////////