Skip to content

Commit 66814c6

Browse files
author
Tianhua Ran
committedFeb 1, 2019
fix: npe in FileDownloadThreadPool
Closes lingochamp#744
1 parent 6981878 commit 66814c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎library/src/main/java/com/liulishuo/filedownloader/services/FileDownloadThreadPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private synchronized void filterOutNoExist() {
114114
for (int i = 0; i < size; i++) {
115115
final int key = runnablePool.keyAt(i);
116116
final DownloadLaunchRunnable runnable = runnablePool.get(key);
117-
if (runnable.isAlive()) {
117+
if (runnable != null && runnable.isAlive()) {
118118
correctedRunnablePool.put(key, runnable);
119119
}
120120
}

0 commit comments

Comments
 (0)