fix: 修复下载实例快照列表为空时的闪退

This commit is contained in:
chenjuntao
2022-09-01 13:58:43 +08:00
parent 5dd0734aad
commit 31d8a442a3
2 changed files with 2 additions and 2 deletions

View File

@ -649,7 +649,7 @@ public class DownloadManager implements DownloadStatusListener {
public void initGameMap() {
gameMap.clear();
List<DownloadEntity> list = getAllDownloadEntitySnapshots();
if (list != null && list.size() != 0) {
if (list.size() != 0) {
String name;
for (DownloadEntity downloadEntity : list) {
name = downloadEntity.getName();