Search Issue Tracker

Fixed in 4.5.X

Votes

0

Found in

4.2.0f1

Issue ID

549971

Regression

No

NullReferenceException on Mac when Ctrl+Click on outgoing changeset in VCS

Version Control

-

Repro on both 4.2.0f1 and latest editor/vcsintegration build. Changeset: 2f8fadd6c175ced35f5f38bc98611655521c58ef [2f8fadd6c175]

Info: Ctrl+Mouseclick can normally be used as right-click on Mac. If performing a "correct" right-click action (i.e. using two fingers on the trackpad) it doesn't fail

1. On Mac, hold down Ctrl key and then "trackpad-click" on the default outgoing changeset in the Versioning window/tab. Doesn't matter if it contains files or not.

Result:
NullReferenceException: Object reference not set to an instance of an object
UnityEditorInternal.VersionControl.ListControl.SelectedRemove (UnityEditorInternal.VersionControl.ListItem item) (at /Users/rasmus/source/release-4.2/Editor/Mono/VersionControl/UI/VCListControl.cs:1103)
UnityEditorInternal.VersionControl.ListControl.SelectedToggle (UnityEditorInternal.VersionControl.ListItem item) (at /Users/rasmus/source/release-4.2/Editor/Mono/VersionControl/UI/VCListControl.cs:1131)
UnityEditorInternal.VersionControl.ListControl.HandleMouse (Rect area) (at /Users/rasmus/source/release-4.2/Editor/Mono/VersionControl/UI/VCListControl.cs:423)
UnityEditorInternal.VersionControl.ListControl.OnGUI (Rect area, Boolean focus) (at /Users/rasmus/source/release-4.2/Editor/Mono/VersionControl/UI/VCListControl.cs:365)
UnityEditor.VersionControl.WindowPending.OnGUI () (at /Users/rasmus/source/release-4.2/Editor/Mono/VersionControl/UI/VCWindowPending.cs:436)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Applications/buildAgent/work/b59ae78cff80e584/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.