From 6f57c60a75a406dd20f781b78ccfdaef1653d4c5 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Fri, 29 Nov 2024 18:14:04 +0800 Subject: [PATCH] =?UTF-8?q?fix=20bean.getKeywordList()=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yutou/bilibili/services/LiveVideoDownloadService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/yutou/bilibili/services/LiveVideoDownloadService.java b/src/main/java/com/yutou/bilibili/services/LiveVideoDownloadService.java index f1d05a7..b35650b 100644 --- a/src/main/java/com/yutou/bilibili/services/LiveVideoDownloadService.java +++ b/src/main/java/com/yutou/bilibili/services/LiveVideoDownloadService.java @@ -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()