repo: janusweb
action: commit
revision: 
path_from: 
revision_from: e247f47ac3bdf8ebbbb2d1eb72589285b51e6903:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit e247f47ac3bdf8ebbbb2d1eb72589285b51e6903
Author: James Baicoianu 
Date:   Fri Jul 26 14:02:20 2024 -0700

    Skip invalid valueNodes in XR controller handling

diff --git a/scripts/janusxrplayer.js b/scripts/janusxrplayer.js
index b40932f5f1390e777c8f52f65aba7e5aa720b9ab..
index ..94eabfe770b4982b80c9df3cd2ff902a0919ee29 100644
--- a/scripts/janusxrplayer.js
+++ b/scripts/janusxrplayer.js
@@ -313,7 +313,7 @@ elation.require(['engine.things.generic', 'janusweb.external.webxr-input-profile
             let visualResponse = component.visualResponses[k];
             // Find the topmost node in the visualization
             const valueNode = motionControllerRoot.getObjectByName(visualResponse.valueNodeName);
-
+            if (!valueNode) continue;
             // Calculate the new properties based on the weight supplied
             if (visualResponse.valueNodeProperty === 'visibility') {
               valueNode.visible = visualResponse.value;

-----END OF PAGE-----