diff --git a/okdownload/src/main/java/com/liulishuo/okdownload/core/download/DownloadCall.java b/okdownload/src/main/java/com/liulishuo/okdownload/core/download/DownloadCall.java index 779e2c20..0814129a 100644 --- a/okdownload/src/main/java/com/liulishuo/okdownload/core/download/DownloadCall.java +++ b/okdownload/src/main/java/com/liulishuo/okdownload/core/download/DownloadCall.java @@ -145,8 +145,9 @@ public void execute() throws InterruptedException { // inspect task start inspectTaskStart(); do { + // NPL for the task.getUrl() for my release env ! // 0. check basic param before start - if (task.getUrl().length() <= 0) { + if (null == task.getUrl() || task.getUrl().length() <= 0) { this.cache = new DownloadCache.PreError( new IOException("unexpected url: " + task.getUrl())); break;