fix null element execption (#370)
This commit is contained in:
@@ -714,6 +714,11 @@ function buildTreeFromBody() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function processElement(element, parentId) {
|
function processElement(element, parentId) {
|
||||||
|
if (element === null) {
|
||||||
|
console.log("get a null element");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Check if the element is interactable
|
// Check if the element is interactable
|
||||||
if (isInteractable(element)) {
|
if (isInteractable(element)) {
|
||||||
var elementObj = buildElementObject(element, true);
|
var elementObj = buildElementObject(element, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user