Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ANON-Public
orbot
Commits
14367e0a
Unverified
Commit
14367e0a
authored
Oct 31, 2017
by
Nathan Freitas
Committed by
GitHub
Oct 31, 2017
Browse files
Merge pull request #76 from dixidroid/master
fixed crash when an user tries to add the same hidden service port twice
parents
8bbf0ba7
2922e487
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/org/torproject/android/OrbotMainActivity.java
View file @
14367e0a
...
...
@@ -656,7 +656,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
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment