1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-29 22:45:44 +00:00

Correctif NPE sur Android

This commit is contained in:
Yan Maniez 2019-04-07 23:37:03 +02:00
parent b29a068341
commit a51e4d0fe6

View file

@ -156,7 +156,7 @@ namespace AideDeJeu.ViewModels
using (var context = await StoreViewModel.GetLibraryContextAsync())
{
var list = await context.SubBackgrounds.Where(item => item.ParentLink == background.Id).OrderBy(b => Tools.Helpers.RemoveDiacritics(b.Name)).ToListAsync().ConfigureAwait(false);
list.Insert(0, null);
list.Insert(0, new SubBackgroundItem() { Name = "-" });
return list;
}
}