Avoid crashes

This commit is contained in:
stom79 2018-11-29 18:48:08 +01:00
parent dd40c3e7bc
commit f6353d29fb
1 changed files with 2 additions and 0 deletions

View File

@ -1819,6 +1819,8 @@ public class TootActivity extends BaseActivity implements OnRetrieveSearcAccount
if( oldContent.length() < currentCursorPosition)
return;
String[] searchA = oldContent.substring(0,currentCursorPosition).split("#");
if( searchA.length < 1)
return;
final String search = searchA[searchA.length-1];
toot_content.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override