diff --git a/android/src/main/java/cn/reactnative/modules/update/DownloadTask.java b/android/src/main/java/cn/reactnative/modules/update/DownloadTask.java index 72fae4c..9307884 100644 --- a/android/src/main/java/cn/reactnative/modules/update/DownloadTask.java +++ b/android/src/main/java/cn/reactnative/modules/update/DownloadTask.java @@ -529,7 +529,10 @@ class DownloadTask extends AsyncTask { break; } Log.e("pushy", "download task failed", e); - params[0].listener.onDownloadFailed(e); + + if (params[0].listener != null) { + params[0].listener.onDownloadFailed(e); + } } return null; }