Skip to content

Commit

Permalink
fix(unofficial-quotes): fix crash when results.statuses is null
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasGGamerM committed Aug 3, 2024
1 parent f404d2f commit c45128c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ private static void tryAddNonOfficialQuote(Status status, BaseStatusListFragment
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);
}
Expand Down

0 comments on commit c45128c

Please sign in to comment.