Closed
Description
When i run the sample application on my mobile phone, click the item ' Resume Download' then click the button 'Run', throws NullPointerException at the FileAsyncHttpResponseHandler construction,
public FileAsyncHttpResponseHandler(File file, boolean append) {
super();
AssertUtils.asserts(file != null, "File passed into FileAsyncHttpResponseHandler constructor must not be null");
AssertUtils.asserts(getTargetFile().getParentFile().mkdirs(), "Cannot create parent directories for requested File location");
this.mFile = file;
this.append = append;
}
This line AssertUtils.asserts(getTargetFile().getParentFile().mkdirs(), "Cannot create parent directories for requested File location");
getTargetFile() returns null