Fix crash when trying to upload after cancelling upload
This commit is contained in:
parent
7941162547
commit
4a2590b4ba
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,6 @@ public class MainActivity extends Activity {
|
||||||
|
|
||||||
if (resultCode != RESULT_OK || intent == null) {
|
if (resultCode != RESULT_OK || intent == null) {
|
||||||
filePathCallback.onReceiveValue(null);
|
filePathCallback.onReceiveValue(null);
|
||||||
return;
|
|
||||||
} else {
|
} else {
|
||||||
Uri[] uris;
|
Uri[] uris;
|
||||||
try {
|
try {
|
||||||
|
@ -85,6 +84,7 @@ public class MainActivity extends Activity {
|
||||||
Logger.e("Error during file upload", ex);
|
Logger.e("Error during file upload", ex);
|
||||||
uris = null;
|
uris = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
filePathCallback.onReceiveValue(uris);
|
filePathCallback.onReceiveValue(uris);
|
||||||
}
|
}
|
||||||
filePathCallback = null;
|
filePathCallback = null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue