Skip to content

Git history render breaks #45

Description

@sebas77

Unity 6000.3.9f1

NullReferenceException: Object reference not set to an instance of an object
Unity.VersionControl.Git.TreeNode.Render (UnityEngine.Rect rect, System.Single indentation, System.Boolean isSelected, System.Boolean treeIsBusy, UnityEngine.GUIStyle toggleStyle, UnityEngine.GUIStyle nodeStyle, UnityEngine.GUIStyle activeNodeStyle) (at ./Library/PackageCache/com.spoiledcat.git@5eb312ed44ac/Editor/UI/TreeControl.cs:471)
Unity.VersionControl.Git.Tree2[TNode,TData].Render (UnityEngine.Rect treeDisplayRect, UnityEngine.Vector2 scroll, System.Action1[T] singleClick, System.Action1[T] doubleClick, System.Action1[T] rightClick) (at ./Library/PackageCache/com.spoiledcat.git@5eb312ed44ac/Editor/UI/TreeControl.cs:114)
Unity.VersionControl.Git.UI.HistoryBase.DoHistoryGui (UnityEngine.Rect rect, System.Action1[T] historyControlRightClick, System.Action1[T] changesTreeRightClick) (at ./Library/PackageCache/com.spoiledcat.git@5eb312ed44ac/Editor/UI/HistoryView.cs:143)
Unity.VersionControl.Git.UI.FileHistoryView.OnGUI () (at ./Library/PackageCache/com.spoiledcat.git@5eb312ed44ac/Editor/UI/HistoryView.cs:464)
Unity.VersionControl.Git.UI.FileHistoryWindow.OnUI () (at ./Library/PackageCache/com.spoiledcat.git@5eb312ed44ac/Editor/UI/FileHistoryWindow.cs:148)
Unity.VersionControl.Git.UI.BaseWindow.OnGUI () (at ./Library/PackageCache/com.spoiledcat.git@5eb312ed44ac/Editor/UI/BaseWindow.cs:96)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <5016c3a47c2a4a0cbfa8e12eb592279b>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <5016c3a47c2a4a0cbfa8e12eb592279b>:0)
UnityEditor.DockArea.OldOnGUI () (at <5016c3a47c2a4a0cbfa8e12eb592279b>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at :0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at :0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at :0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at :0)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderTreeManager.RenderSingleTree (UnityEngine.UIElements.UIR.RenderTree renderTree, UnityEngine.RenderTexture nestedTreeRT, UnityEngine.RectInt nestedTreeViewport, UnityEngine.Rect bounds) (at :0)
UnityEngine.UIElements.UIR.RenderTreeManager.RenderRootTree () (at :0)
UnityEngine.UIElements.UIRRepaintUpdater.Render () (at :0)
UnityEngine.UIElements.BaseVisualElementPanel.Render () (at :0)
UnityEngine.UIElements.Panel.Render () (at :0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at :0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at :0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at :0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at :0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <3aeedaeec10f4947b3ef89d9eff0ba6b>:0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions