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) {
|
||||
filePathCallback.onReceiveValue(null);
|
||||
return;
|
||||
} else {
|
||||
Uri[] uris;
|
||||
try {
|
||||
|
@ -85,6 +84,7 @@ public class MainActivity extends Activity {
|
|||
Logger.e("Error during file upload", ex);
|
||||
uris = null;
|
||||
}
|
||||
|
||||
filePathCallback.onReceiveValue(uris);
|
||||
}
|
||||
filePathCallback = null;
|
||||
|
|
Loading…
Reference in a new issue