diff --git a/BepisDynamicVariablePowerTools/BepisDynamicVariablePowerTools.csproj b/BepisDynamicVariablePowerTools/BepisDynamicVariablePowerTools.csproj index ec7be12..c65e26f 100644 --- a/BepisDynamicVariablePowerTools/BepisDynamicVariablePowerTools.csproj +++ b/BepisDynamicVariablePowerTools/BepisDynamicVariablePowerTools.csproj @@ -1,7 +1,7 @@  - 1.1.1 + 1.1.2 BowenArrows2K net10.0 https://github.com/BowenArrows2K/BepisDynamicVariablePowerTools diff --git a/BepisDynamicVariablePowerTools/Patches/RenameDynVarNodes.cs b/BepisDynamicVariablePowerTools/Patches/RenameDynVarNodes.cs index 6ff5614..b85305a 100644 --- a/BepisDynamicVariablePowerTools/Patches/RenameDynVarNodes.cs +++ b/BepisDynamicVariablePowerTools/Patches/RenameDynVarNodes.cs @@ -50,8 +50,8 @@ public static FrooxEngine.ProtoFlux.CoreNodes.ReferenceDrive.Proxy GetRefProx public static void ReplaceNodeText(ProtoFluxNodeVisual visual, IValue Target) { - string fieldName = Target.Name; - var parent = Target.Parent; + string fieldName = Target?.Name; + var parent = Target?.Parent; Traverse field = Traverse.Create(parent).Field("VariableName"); if (field.FieldExists()) { diff --git a/CHANGELOG.md b/CHANGELOG.md index 1737ed1..4d61107 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Context Menu drop actions ## [Unreleased] +## [1.1.2] + +### Added +- Two ? + +### Fixed +- Fixed null reference exception when trying to rename a variable that is not linked to a DynamicVariable. + ## [1.1.1] - Bump for Rebuild