mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-10 12:47:26 +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.toString().isEmpty()) {
|
||||
Toast.makeText(this, R.string.invalid_link, Toast.LENGTH_SHORT).show();
|
||||
finish();
|
||||
return;
|
||||
}
|
||||
handleUri(getRedditUriByPath(uri.toString()));
|
||||
} else {
|
||||
handleUri(uri);
|
||||
|
Loading…
Reference in New Issue
Block a user