fix(unofficial-quotes): fix crash when results.statuses is null

This commit is contained in:
LucasGGamerM 2024-08-03 09:36:16 -03:00
parent f404d2f9cd
commit c45128ced0
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ public abstract class StatusDisplayItem{
new GetSearchResults(quoteURL, GetSearchResults.Type.STATUSES, true, null, 0, 0).setCallback(new Callback<>(){
@Override
public void onSuccess(SearchResults results){
if (!results.statuses.isEmpty()){
if (results.statuses != null && !results.statuses.isEmpty()){
status.quote=results.statuses.get(0);
fragment.updateStatusWithQuote(status);
}