fix: fixes crashes when currentQuery is null and suicide prevention dialog is enabled (#807)

cc: @FineFindus
This commit is contained in:
LucasGGamerM 2023-09-07 05:03:22 -03:00 committed by GitHub
parent 2aba90f353
commit 3020cab243
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -388,7 +388,7 @@ public class SearchQueryFragment extends MastodonRecyclerFragment<SearchResultVi
}
private void wrapSuicideDialog(Runnable r){
if(!GlobalUserPreferences.showSuicideHelp){
if(!GlobalUserPreferences.showSuicideHelp || currentQuery==null){
r.run();
return;
}