diff --git a/VContainer/Assets/VContainer/Runtime/Internal/InstanceProviders/CollectionInstanceProvider.cs b/VContainer/Assets/VContainer/Runtime/Internal/InstanceProviders/CollectionInstanceProvider.cs index b90cf9f6..5532c376 100644 --- a/VContainer/Assets/VContainer/Runtime/Internal/InstanceProviders/CollectionInstanceProvider.cs +++ b/VContainer/Assets/VContainer/Runtime/Internal/InstanceProviders/CollectionInstanceProvider.cs @@ -98,7 +98,7 @@ internal void CollectFromParentScopes( if (scope.TryGetRegistration(finderType, out var registration) && registration.Provider is CollectionInstanceProvider parentCollection) { - mergedRegistrations ??= ListPool.Get(); + mergedRegistrations = mergedRegistrations ?? ListPool.Get(); mergedRegistrations.AddRange(registrations); if (localScopeOnly)