Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 844ee96

Browse files
committed
Null checking for archetypeList.
1 parent 3411273 commit 844ee96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Presentation/ygo.api/Controllers/ArchetypesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private LinkInfo ArchetypeSearchCreateLink(string routeName, string searchTerm,
210210

211211
private void GenerateArchetypeImageLinks(List<ArchetypeDto> archetypeList)
212212
{
213-
archetypeList.ForEach(a => { a.ImageUrl = Url.Link(ImagesController.ArchetypeImageRouteName, new { a.Id }); });
213+
archetypeList?.ForEach(a => { a.ImageUrl = Url.Link(ImagesController.ArchetypeImageRouteName, new { a.Id }); });
214214
}
215215

216216
#endregion

0 commit comments

Comments
 (0)