diff --git a/static/js/zulip.js b/static/js/zulip.js index a578c6bf9e..2a041b573c 100644 --- a/static/js/zulip.js +++ b/static/js/zulip.js @@ -1329,7 +1329,7 @@ function main() { // // We fall back to the closest selected id, as the user may have removed // a stream from the home before already - if (home_msg_list.selected_id() === -1) { + if (home_msg_list.selected_id() === -1 && !home_msg_list.empty()) { home_msg_list.select_id(page_params.initial_pointer, {then_scroll: true, use_closest: true}); }