处理空指针异常

This commit is contained in:
chenjuntao
2019-05-07 09:52:03 +08:00
parent 2dfd57de80
commit b4b1a63c22

View File

@ -83,7 +83,7 @@ public class DownloadItemUtils {
DownloadManager.getInstance(context).sendMessageDelayed(msg, 3000);
}
}
if (platform.equals(queue.peek())) {
if (platform != null && platform.equals(queue.peek())) {
if (entryMap == null) {
entryMap = new ArrayMap<>();
gameEntity.setEntryMap(entryMap);