mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2026-02-13 18:25:56 +00:00
Fix java.lang.StringIndexOutOfBoundsException in LinkResolverActivity.getRedditUriByPath.
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user