Skip to content

Commit

Permalink
Fix null error in duplication registration
Browse files Browse the repository at this point in the history
  • Loading branch information
hadashiA committed Nov 15, 2024
1 parent e427251 commit b1fd5ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VContainer/Assets/VContainer/Runtime/Registry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static Registry Build(Registration[] registrations)

static void AddToBuildBuffer(IDictionary<Type, Registration> buf, Type service, Registration registration)
{
if (buf.TryGetValue(service, out var exists))
if (buf.TryGetValue(service, out var exists) && exists != null)
{
CollectionInstanceProvider collection;
if (buf.TryGetValue(RuntimeTypeCache.EnumerableTypeOf(service), out var found) &&
Expand Down

0 comments on commit b1fd5ae

Please sign in to comment.