Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Fixed potential ArgumentNullException.
Browse files Browse the repository at this point in the history
  • Loading branch information
RequiDev committed Nov 29, 2021
1 parent 55537c2 commit b835eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReModCE/Components/AvatarFavoritesComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ private void SearchAvatars(string searchTerm)
{
searchResponse.Content.ReadAsStringAsync().ContinueWith(t =>
{
var avatars = JsonConvert.DeserializeObject<List<ReAvatar>>(t.Result);
var avatars = JsonConvert.DeserializeObject<List<ReAvatar>>(t.Result) ?? new List<ReAvatar>();
MelonCoroutines.Start(RefreshSearchedAvatars(avatars));
});
}
Expand Down

0 comments on commit b835eb2

Please sign in to comment.