Skip to content

Commit 1876c23

Browse files
committed
added null check
1 parent e278de0 commit 1876c23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/MixedRealityToolkit/_Core/Devices/OpenVR/OpenVRDeviceManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private GenericOpenVRController GetOrAddController(XRNodeState xrNodeState)
210210
new object[] { TrackingState.NotTracked, controllingHand, inputSource }) as GenericOpenVRController;
211211

212212
Debug.Assert(detectedController != null);
213-
detectedController.SetupConfiguration(controllerType);
213+
detectedController?.SetupConfiguration(controllerType);
214214

215215
for (int i = 0; i < detectedController?.InputSource?.Pointers?.Length; i++)
216216
{

0 commit comments

Comments
 (0)