From 799d18cbdcee871bc19328ec5beececc41484bd2 Mon Sep 17 00:00:00 2001 From: arrase Date: Sun, 27 Nov 2016 23:00:25 +0100 Subject: [PATCH] bug fix --- app/src/main/java/org/torproject/android/OrbotMainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/torproject/android/OrbotMainActivity.java b/app/src/main/java/org/torproject/android/OrbotMainActivity.java index 4ceb0a09..d227c62d 100644 --- a/app/src/main/java/org/torproject/android/OrbotMainActivity.java +++ b/app/src/main/java/org/torproject/android/OrbotMainActivity.java @@ -588,7 +588,7 @@ public class OrbotMainActivity extends AppCompatActivity null ); - if (row == null) { + if (row == null || row.getCount() < 1) { cr.insert(HSContentProvider.CONTENT_URI, fields); } else { onionHostname = row.getString(row.getColumnIndex(HSContentProvider.HiddenService.DOMAIN));