diff --git a/TNodeGraphViewImpl/Editor/GraphBlackboard/DefaultGraphBlackboardView.cs b/TNodeGraphViewImpl/Editor/GraphBlackboard/DefaultGraphBlackboardView.cs index 024162b..0f05ef3 100644 --- a/TNodeGraphViewImpl/Editor/GraphBlackboard/DefaultGraphBlackboardView.cs +++ b/TNodeGraphViewImpl/Editor/GraphBlackboard/DefaultGraphBlackboardView.cs @@ -88,8 +88,11 @@ namespace TNodeGraphViewImpl.Editor.GraphBlackboard{ bool isRuntimeGraph, BlackboardSection blackboardSection, int index){ var property = serializedObject.FindProperty("data"); - property = property.FindPropertyRelative(field.Name).GetArrayElementAtIndex(index); - + property = property.FindPropertyRelative(field.Name)?.GetArrayElementAtIndex(index); + if (property == null){ + + Debug.LogError($"Can not find property {field.Name} in {serializedObject.targetObject.name}"); + } BlackboardDataEntry entry = new BlackboardDataEntry(field.FieldType){ propertyPath = field.Name+"."+index, };