1
0
Fork 0

Fix crash when trying to upload after cancelling upload

This commit is contained in:
Vendicated 2022-12-11 08:36:23 +01:00
parent 7941162547
commit 4a2590b4ba
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3

View file

@ -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;