From 6bd89af9efbe08c1bf1ca67713ad4e7f3ab78205 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Mon, 2 Jan 2023 14:47:46 -0300 Subject: [PATCH] [app] Fix crash when trying to add a new repo with the empty string Closes acra-crash-reports#155 --- app/src/main/java/org/fdroid/fdroid/AddRepoIntentService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/fdroid/fdroid/AddRepoIntentService.java b/app/src/main/java/org/fdroid/fdroid/AddRepoIntentService.java index 6eddd6587..2652f284d 100644 --- a/app/src/main/java/org/fdroid/fdroid/AddRepoIntentService.java +++ b/app/src/main/java/org/fdroid/fdroid/AddRepoIntentService.java @@ -111,7 +111,7 @@ public class AddRepoIntentService extends IntentService { */ public static String normalizeUrl(String urlString) throws URISyntaxException { if (TextUtils.isEmpty(urlString)) { - return null; + throw new URISyntaxException("null", "Uri was empty"); } return normalizeUrl(Uri.parse(urlString)); }