diff --git a/src/Injectio.Generators/ServiceRegistrationGenerator.cs b/src/Injectio.Generators/ServiceRegistrationGenerator.cs index 7694cfc..be7934a 100644 --- a/src/Injectio.Generators/ServiceRegistrationGenerator.cs +++ b/src/Injectio.Generators/ServiceRegistrationGenerator.cs @@ -57,12 +57,12 @@ private void ExecuteGeneration( (ImmutableArray Registrations, (string? AssemblyName, string? MethodName) Options) source) { var serviceRegistrations = source.Registrations - .SelectMany(m => m.ServiceRegistrations) + .SelectMany(m => m!.ServiceRegistrations) .Where(m => m is not null) .ToArray(); var moduleRegistrations = source.Registrations - .SelectMany(m => m.ModuleRegistrations) + .SelectMany(m => m!.ModuleRegistrations) .Where(m => m is not null) .ToArray();