summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/viewfeed.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index 095bfab22..005e0758c 100644
--- a/js/viewfeed.js
+++ b/js/viewfeed.js
@@ -590,7 +590,7 @@ function moveToPost(mode, noscroll, noexpand) {
if (!getInitParam("cdm_expanded")) {
- if (!noscroll && article.offsetTop < ctr.scrollTop) {
+ if (!noscroll && article && article.offsetTop < ctr.scrollTop) {
scrollArticle(-ctr.offsetHeight/4);
} else {
cdmExpandArticle(prev_id, noexpand);