Skip to content

Commit

Permalink
Fixed fatal bug if a node is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
create3000 committed Sep 20, 2024
1 parent a92ffc0 commit c23d0b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Application/Traverse.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module .exports = class Traverse
static PROTOTYPE_INSTANCES = flags <<= 1;
static INLINE_SCENE = flags <<= 1;
static ALL = (flags << 1) - 1;

/**
*
* @param {X3DScene|X3DExecutionContext|MFNode|Array<SFNode>|SFNode} object
Expand Down Expand Up @@ -353,7 +353,7 @@ module .exports = class Traverse
case X3D .X3DConstants .MFNode:
{
for (const node of field)
this .findInNode (node .getValue (), object, flags, hierarchies, hierarchy, seen);
this .findInNode (node ?.getValue (), object, flags, hierarchies, hierarchy, seen);

break;
}
Expand Down

0 comments on commit c23d0b1

Please sign in to comment.