Unity Issue Tracker - Exception is printed because there are no null checks for Ray Interactor when its value is removed from ActionBasedControllerManager Component
Fixed
XRIT-72
Exception is printed because there are no null checks for Ray Interactor when its value is removed from ActionBasedControllerManager Component
Package: XR Interaction Toolkit
XRIT
Won't Fix
2.3.X
The fix has been implemented in XRI 2.4.0-pre.1 and will not be back-ported to 2.3.X.
Steps to reproduce:
1. Open the attached user's project "TestXRI.rar"
2. Under "Assets/Samples/XR Interaction Toolkit/2.3.1/Starter Assets/DemoScene.unity" open the Scene
3. Under "Complete XR Origin Set up" GameObject make sure that Ray Interactor GameObject is disabled under the "LeftHand" GameObject
4. Remove Ray Interactor value from the "ActionBasedControllerManager" Component under the "LeftHand" GameObject
5. Remove the Ray Interactor value from "XR interaction group" Component under the "LeftHand" GameObject
6. Connect the Oculus link and enter Play Mode
7. Observe the exception:
ArgumentNullException: Value cannot be null
Parameter name: groupMember
Expected results: Exception is not printed and null checks are present for Ray Interactor
Actual Results: Exception is printed because there are no null checks for Ray Interactor