Fix mDownloadingDelay NullPointerException
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user