From 4a2590b4baae7c3f4134db3ea4a9fe2d5d4f5d1a Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sun, 11 Dec 2022 08:36:23 +0100 Subject: [PATCH] Fix crash when trying to upload after cancelling upload --- app/src/main/java/dev/vendicated/vencord/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/dev/vendicated/vencord/MainActivity.java b/app/src/main/java/dev/vendicated/vencord/MainActivity.java index 2813d86..ece5a12 100644 --- a/app/src/main/java/dev/vendicated/vencord/MainActivity.java +++ b/app/src/main/java/dev/vendicated/vencord/MainActivity.java @@ -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;