diff --git a/src/org/fdroid/fdroid/Utils.java b/src/org/fdroid/fdroid/Utils.java index a9e4ec1b9..39edc418e 100644 --- a/src/org/fdroid/fdroid/Utils.java +++ b/src/org/fdroid/fdroid/Utils.java @@ -193,6 +193,8 @@ public final class Utils { } public static Uri getSharingUri(Context context, Repo repo) { + if (TextUtils.isEmpty(repo.address)) + return Uri.parse("http://wifi-not-enabled"); Uri uri = Uri.parse(repo.address.replaceFirst("http", "fdroidrepo")); Uri.Builder b = uri.buildUpon(); b.appendQueryParameter("fingerprint", repo.fingerprint);