File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/main/java/com/google/firebase/storage Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ # Unreleased
2
+ - [ fixed] Fixed an issue that caused the SDK to crash if the download location
3
+ was deleted before the download completed. Instead, the download now fails.
4
+
1
5
# 19.0.2
2
6
- [ fixed] Fixed an encoding issue in ` list()/listAll() ` that caused us to miss
3
7
entries for folders that contained special characters.
Original file line number Diff line number Diff line change @@ -130,8 +130,7 @@ private boolean processResponse(final NetworkRequest request) throws IOException
130
130
File outputFile = new File (mDestinationFile .getPath ());
131
131
if (!outputFile .exists ()) {
132
132
if (mResumeOffset > 0 ) {
133
- Log .e (TAG , "The file downloading to has been deleted:" + outputFile .getAbsolutePath ());
134
- throw new IllegalStateException ("expected a file to resume from." );
133
+ throw new IOException ("The file to download to has been deleted." );
135
134
}
136
135
boolean created = outputFile .createNewFile ();
137
136
if (!created ) {
You can’t perform that action at this time.
0 commit comments