Skip to content

Commit 474b36a

Browse files
committed
Accessing getTargetFile() before value is assigned, Closing android-async-http#743
1 parent ba5d157 commit 474b36a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/loopj/android/http/FileAsyncHttpResponseHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public FileAsyncHttpResponseHandler(File file) {
5353
public FileAsyncHttpResponseHandler(File file, boolean append) {
5454
super();
5555
AssertUtils.asserts(file != null, "File passed into FileAsyncHttpResponseHandler constructor must not be null");
56-
AssertUtils.asserts(getTargetFile().getParentFile().mkdirs(), "Cannot create parent directories for requested File location");
56+
AssertUtils.asserts(file.getParentFile().mkdirs(), "Cannot create parent directories for requested File location");
5757
this.mFile = file;
5858
this.append = append;
5959
}

0 commit comments

Comments
 (0)