mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-20 06:47:06 -04:00
[app] Fix crash when trying to add a new repo with the empty string
Closes acra-crash-reports#155
This commit is contained in:
committed by
Hans-Christoph Steiner
parent
f3df28579f
commit
6bd89af9ef
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user