fix bean.getKeywordList()可能为空

This commit is contained in:
zlzw 2024-11-29 18:14:04 +08:00
parent fa8523da97
commit 6f57c60a75

View File

@ -88,7 +88,7 @@ public class LiveVideoDownloadService {
@Override
public void onResponse(Headers headers, int code, String status, LiveRoomInfo response, String rawResponse) {
if (response.getLiveStatus() == 1) {
if (!bean.getKeywordList().isEmpty() && !isUser) {
if (bean.getKeywordList()!=null&&!bean.getKeywordList().isEmpty() && !isUser) {
String foundKey = bean.getKeywordList().stream()
.filter(key -> response.getTitle().contains(key))
.findFirst()