diff --git a/okdownload/src/main/java/com/liulishuo/okdownload/core/listener/assist/Listener1Assist.java b/okdownload/src/main/java/com/liulishuo/okdownload/core/listener/assist/Listener1Assist.java index 6c90ff07..8929bff4 100644 --- a/okdownload/src/main/java/com/liulishuo/okdownload/core/listener/assist/Listener1Assist.java +++ b/okdownload/src/main/java/com/liulishuo/okdownload/core/listener/assist/Listener1Assist.java @@ -85,7 +85,7 @@ public void connectEnd(DownloadTask task) { final Listener1Model model = modelHandler.getOrRecoverModel(task, task.getInfo()); if (model == null) return; - if (model.isFromResumed && model.isFirstConnect) { + if (model.isFromResumed != null && model.isFromResumed && model.isFirstConnect) { model.isFirstConnect = false; }