diff --git a/chrome/content/zotero/components/virtualized-table.jsx b/chrome/content/zotero/components/virtualized-table.jsx index 3f4cc53a5e..9adbf1733b 100644 --- a/chrome/content/zotero/components/virtualized-table.jsx +++ b/chrome/content/zotero/components/virtualized-table.jsx @@ -865,7 +865,7 @@ class VirtualizedTable extends React.Component { // otherwise the .cell element if its immediate child is a text node // should be used. if (!textElem) { - if (elem.childNodes[0].nodeType != window.Node.TEXT_NODE) return; + if (!elem.childNodes.length || elem.childNodes[0].nodeType != window.Node.TEXT_NODE) return; textElem = elem; } // We need to set the [title] attribute on the .label element in the header