Skip to content

Commit

Permalink
Merge pull request #1122 from anatawa12/fix-nre
Browse files Browse the repository at this point in the history
fix: NRE with Generic Avatar
  • Loading branch information
anatawa12 authored Jul 21, 2024
2 parents 1e4155d + de8bd14 commit f15a8f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-PRERELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog].

### Fixed
- Index out of bounds error with remove mesh by mask `#1119`
- NRE with Generic Avatar `#1122`

### Security

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog].

### Fixed
- Index out of bounds error with remove mesh by mask `#1119`
- NRE with Generic Avatar `#1122`

### Security

Expand Down
4 changes: 3 additions & 1 deletion Editor/AnimatorParserV2/NodeContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ internal class RootPropModNodeContainer : INodeContainer<RootPropModNode<float>,
public IReadOnlyDictionary<(ComponentOrGameObject target, string prop), RootPropModNode<Object>> ObjectNodes =>
_objectNodes;

public void Add(ComponentNodeContainer container, bool alwaysApplied)
public void Add([CanBeNull] ComponentNodeContainer container, bool alwaysApplied)
{
if (container == null) return;

foreach (var (key, value) in container.FloatNodes)
{
if (!FloatNodes.TryGetValue(key, out var node))
Expand Down

0 comments on commit f15a8f0

Please sign in to comment.