fix warnings

This commit is contained in:
Athou
2023-12-27 11:19:34 +01:00
parent fdf4fdcc87
commit 8c69dd355c
2 changed files with 3 additions and 4 deletions

View File

@@ -5,7 +5,6 @@ import java.util.List;
import java.util.Optional;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.collections4.MapUtils;
import org.apache.hc.core5.http.NameValuePair;
import org.apache.hc.core5.net.URIBuilder;
@@ -73,7 +72,7 @@ public class YoutubeFaviconFetcher extends AbstractFaviconFetcher {
response = fetchForPlaylist(youtube, googleAuthKey, playlistId.get().getValue());
}
if (MapUtils.isEmpty(response) || CollectionUtils.isEmpty(response.getItems())) {
if (response == null || response.isEmpty() || CollectionUtils.isEmpty(response.getItems())) {
log.debug("youtube api returned no items");
return null;
}