[app] Fix crash when trying to add a new repo with the empty string

Closes acra-crash-reports#155
This commit is contained in:
Torsten Grote
2023-01-02 14:47:46 -03:00
committed by Hans-Christoph Steiner
parent f3df28579f
commit 6bd89af9ef

View File

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