From 0950a955775aca216099f0bc9cba6d38b27fac5a Mon Sep 17 00:00:00 2001 From: Fynn Godau Date: Thu, 4 Jun 2020 19:16:08 +0200 Subject: [PATCH] Fix for testing wrong object for null or empty --- .../services/bandcamp/extractors/BandcampExtractorHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampExtractorHelper.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampExtractorHelper.java index c9e21b31f..37c4ff96b 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampExtractorHelper.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampExtractorHelper.java @@ -88,7 +88,7 @@ public class BandcampExtractorHelper { // Remove empty strings ArrayList list = new ArrayList<>(Arrays.asList(strings)); for (int i = list.size() - 1; i >= 0; i--) { - if (Utils.isNullOrEmpty(list) || list.get(i).equals("null")) { + if (Utils.isNullOrEmpty(list.get(i)) || list.get(i).equals("null")) { list.remove(i); } }