Skip to content

NullPointerException at sample application 'Resume Download' #743

Closed
@mricefox

Description

@mricefox

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions