mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-29 04:17:12 +01:00
Fix java.lang.StringIndexOutOfBoundsException in LinkResolverActivity.getRedditUriByPath.
This commit is contained in:
parent
974730db1a
commit
d27140adf7
@ -92,6 +92,11 @@ public class LinkResolverActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (uri.getScheme() == null && uri.getHost() == null) {
|
if (uri.getScheme() == null && uri.getHost() == null) {
|
||||||
|
if (uri.toString().isEmpty()) {
|
||||||
|
Toast.makeText(this, R.string.invalid_link, Toast.LENGTH_SHORT).show();
|
||||||
|
finish();
|
||||||
|
return;
|
||||||
|
}
|
||||||
handleUri(getRedditUriByPath(uri.toString()));
|
handleUri(getRedditUriByPath(uri.toString()));
|
||||||
} else {
|
} else {
|
||||||
handleUri(uri);
|
handleUri(uri);
|
||||||
|
Loading…
Reference in New Issue
Block a user