fix(unofficial-quotes): fix crash when results.statuses is null
This commit is contained in:
parent
f404d2f9cd
commit
c45128ced0
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue