fix bean.getKeywordList()可能为空
This commit is contained in:
parent
fa8523da97
commit
6f57c60a75
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user