Skip to content

Commit 850002b

Browse files
committed
fix: NullReferenceException on AnimationClip preview graph
1 parent ecf7e2d commit 850002b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Editor/Scripts/Window/PlayableGraphMonitorWindow_Sidebar.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using System.Text;
21
using GBG.PlayableGraphMonitor.Editor.Node;
32
using GBG.PlayableGraphMonitor.Editor.Utility;
3+
using System.Text;
44
using UnityEditor.Experimental.GraphView;
55
using UnityEngine.UIElements;
66

@@ -114,6 +114,7 @@ private string GetPlayableGraphDescription()
114114
const string LINE = "----------";
115115

116116
_graphDescBuilder.AppendLine(playableGraph.GetEditorName())
117+
.AppendLine(LINE)
117118
.Append("HashCode: ").AppendLine(playableGraph.GetHashCode().ToString())
118119
.AppendLine(LINE)
119120
.Append("IsValid: ").AppendLine(playableGraph.IsValid().ToString())
@@ -125,7 +126,7 @@ private string GetPlayableGraphDescription()
125126
.Append("PlayableCount: ").AppendLine(playableGraph.GetPlayableCount().ToString())
126127
.Append("RootPlayableCount: ").AppendLine(playableGraph.GetRootPlayableCount().ToString())
127128
.AppendLine(LINE)
128-
.Append("Resolver: ").AppendLine(playableGraph.GetResolver().ToString());
129+
.Append("Resolver: ").AppendLine(playableGraph.GetResolver()?.ToString() ?? "Null");
129130
}
130131

131132
return _graphDescBuilder.ToString();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.greenbamboogames.playablegraphmonitor",
3-
"version": "2.4.0",
3+
"version": "2.5.0",
44
"displayName": "PlayableGraph Monitor!",
55
"description": "PlayableGraph monitor.",
66
"unity": "2019.4",

0 commit comments

Comments
 (0)