Skip to content

Commit a223741

Browse files
marek-stojkeveleigh
authored andcommitted
Fixed occasional NullReferenceExceptions coming from ObjectManipulator.OnPointerDown() (#10613)
1 parent 7115015 commit a223741

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Assets/MRTK/SDK/Features/Input/Handlers/ObjectManipulator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,8 @@ public Vector3 GetPointerGrabPoint(uint pointerId)
577577
public virtual void OnPointerDown(MixedRealityPointerEventData eventData)
578578
{
579579
if (eventData.used ||
580+
eventData.Pointer == null ||
581+
eventData.Pointer.Result == null ||
580582
(!allowFarManipulation && eventData.Pointer as IMixedRealityNearPointer == null))
581583
{
582584
return;

0 commit comments

Comments
 (0)