fixed crash when an user tries to add the same hidden service port twice

This commit is contained in:
Igor Koznin 2017-07-16 15:55:49 +03:00
parent 5b255df92d
commit 2922e48730
1 changed files with 1 additions and 1 deletions

View File

@ -624,7 +624,7 @@ public class OrbotMainActivity extends AppCompatActivity
if (row == null || row.getCount() < 1) {
cr.insert(HSContentProvider.CONTENT_URI, fields);
} else {
} else if (row.moveToFirst()) {
onionHostname = row.getString(row.getColumnIndex(HSContentProvider.HiddenService.DOMAIN));
row.close();
}