Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit c0b2841

Browse files
This can be called when the tree objects are null
1 parent 1b64ba3 commit c0b2841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ChangesView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private void OnTreeGUI(Rect rect)
118118

119119
private void UpdateTreeStyles()
120120
{
121-
if (treeChanges.FolderStyle == null)
121+
if (treeChanges != null && treeChanges.FolderStyle == null)
122122
{
123123
treeChanges.FolderStyle = Styles.Foldout;
124124
treeChanges.TreeNodeStyle = Styles.TreeNode;

0 commit comments

Comments
 (0)