Fix for testing wrong object for null or empty

This commit is contained in:
Fynn Godau 2020-06-04 19:16:08 +02:00
parent e6ecd91929
commit 0950a95577
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ public class BandcampExtractorHelper {
// Remove empty strings
ArrayList<String> 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);
}
}