From ef37d60710c252e1d8473e8ce779696d497e857f Mon Sep 17 00:00:00 2001 From: admin <2780501319@qq.com> Date: 星期一, 29 三月 2021 23:59:56 +0800 Subject: [PATCH] 全网搜视频详情日志添加 --- src/main/java/com/yeshi/buwan/controller/parser/UserVideoParser.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/yeshi/buwan/controller/parser/UserVideoParser.java b/src/main/java/com/yeshi/buwan/controller/parser/UserVideoParser.java index 43fd1c5..fb80b87 100644 --- a/src/main/java/com/yeshi/buwan/controller/parser/UserVideoParser.java +++ b/src/main/java/com/yeshi/buwan/controller/parser/UserVideoParser.java @@ -46,7 +46,8 @@ Map<String, VideoInfo> videoInfoMap = new HashMap<>(); if (videoInfoList != null) for (VideoInfo vi : videoInfoList) { - videoInfoMap.put(vi.getId(), vi); + if (vi != null) + videoInfoMap.put(vi.getId(), vi); } for (VideoWatchHistory wh : list) { wh.setVideo(videoInfoMap.get(wh.getVideoId())); -- Gitblit v1.8.0