Looks like there is a bug where when you try to get a group that doesn't exist and add filters you will get this
System.NullReferenceException: Object reference not set to an instance of an object.
at SimpleIdServer.Scim.Persistence.EF.Extensions.EFSCIMExpressionLinqExtensions.BuildResult(IQueryable`1 representations, SCIMDbContext dbContext, IEnumerable`1 includedAttributes, IEnumerable`1 excludedAttributes, String id, String resourceType) in /Users/me/Scim/SimpleIdServer.Scim.Persistence.EF/Extensions/EFSCIMExpressionLinqExtensions.cs:line 40
at SimpleIdServer.Scim.Persistence.EF.EFSCIMRepresentationQueryRepository.FindSCIMRepresentationById(String representationId, String resourceType, GetSCIMResourceParameter parameter) in /Users/me/Scim/SimpleIdServer.Scim.Persistence.EF/EFSCIMRepresentationQueryRepository.cs:line 35
at SimpleIdServer.Scim.Queries.GetRepresentationQueryHandler.Handle(String id, GetSCIMResourceRequest parameter, String resourceType) in /Users/me/Scim/SimpleIdServer.Scim/Queries/GetRepresentationQueryHandler.cs:line 42
at SimpleIdServer.Scim.Api.BaseApiController.InternalGet(String id, GetSCIMResourceRequest parameter) in /Users/me/Scim/SimpleIdServer.Scim/Api/BaseApiController.cs:line 410
Looks like there is a bug where when you try to get a group that doesn't exist and add filters you will get this
example request: http://localhost:8000/Groups/d66c9547-7a3b-44a5-8ce8-417616ee8d03?excludedAttributes=members
I managed to fix it by adding
if (result is null) return null;
inthis code is in
SimpleIdServer.Scim.Persistence.EF\Extensions\EFSCIMExpressionLinqExtensions.cs:36