From 7e294b8c2110dca1fb88dd4f37a17bb33685fb50 Mon Sep 17 00:00:00 2001 From: LumaLivy Date: Mon, 8 Nov 2021 14:03:15 -0500 Subject: [PATCH] Include Creator to avoid nullreference --- ProjectLighthouse/Controllers/ListController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ProjectLighthouse/Controllers/ListController.cs b/ProjectLighthouse/Controllers/ListController.cs index 0b1deefb..7ac6bf03 100644 --- a/ProjectLighthouse/Controllers/ListController.cs +++ b/ProjectLighthouse/Controllers/ListController.cs @@ -32,6 +32,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers (q => q.User) .Include(q => q.Slot) .Include(q => q.Slot.Location) + .Include(q => q.Slot.Creator) .Where(q => q.User.Username == username) .AsEnumerable();