Fix mDownloadingDelay NullPointerException

This commit is contained in:
seven332 committed 2016-04-09 22:36:20 +08:00
1 parent 05f9ce59f3
commit b4095449c1
1 file changed
+7 -2
@@ -345,7 +345,9 @@ public class DownloadService extends Service implements DownloadManager.Download
return;
}
mDownloadingDelay.cancel();
if (null != mDownloadingDelay) {
mDownloadingDelay.cancel();
}
ensureDownloadedBuilder();
@@ -443,7 +445,10 @@ public class DownloadService extends Service implements DownloadManager.Download
return;
}
mDownloadingDelay.cancel();
if (null != mDownloadingDelay) {
mDownloadingDelay.cancel();
}
checkStopSelf();
}