Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2007-03-14 16:21:09 -0400
committerChris Goldthorpe2007-03-14 16:21:09 -0400
commit69f6fadc6bad616eadc3f474990a05a7befa6645 (patch)
tree25e5dc224fafafae3fd6575b6f9af6b8b172d7f3 /org.eclipse.help.webapp
parent221476c1902f1ac4d9cc9b0e0b0af62d706e4698 (diff)
downloadeclipse.platform.ua-69f6fadc6bad616eadc3f474990a05a7befa6645.tar.gz
eclipse.platform.ua-69f6fadc6bad616eadc3f474990a05a7befa6645.tar.xz
eclipse.platform.ua-69f6fadc6bad616eadc3f474990a05a7befa6645.zip
Ensure that next and previous will work if no content is displayed.
Diffstat (limited to 'org.eclipse.help.webapp')
-rw-r--r--org.eclipse.help.webapp/advanced/indexView.js4
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);
}
}

Back to the top