[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [orbot/master] bug fix



commit 799d18cbdcee871bc19328ec5beececc41484bd2
Author: arrase <arrase@xxxxxxxxx>
Date:   Sun Nov 27 23:00:25 2016 +0100

    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 4ceb0a0..d227c62 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));



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits