diff options
-rw-r--r-- | org.eclipse.help.webapp/advanced/indexView.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.help.webapp/advanced/indexView.js b/org.eclipse.help.webapp/advanced/indexView.js index 3dcf76b32..167bbce23 100644 --- a/org.eclipse.help.webapp/advanced/indexView.js +++ b/org.eclipse.help.webapp/advanced/indexView.js @@ -193,12 +193,12 @@ function getFirstAndLast() { var treeRoot = document.getElementById("tree_root"); if (treeRoot == null) return; var firstDiv = findChild(treeRoot, "DIV"); - if (firstDiv.nodeid) { + if (firstDiv && firstDiv.nodeid) { firstEntry = firstDiv.nodeid.substring(1); } var lastDiv = findLastChild(treeRoot, "DIV"); - if (lastDiv.nodeid) { + if (lastDiv && lastDiv.nodeid) { lastEntry = lastDiv.nodeid.substring(1); } } |