diff --git a/core/modules/widgets/list/listviews/classic.js b/core/modules/widgets/list/listviews/classic.js index ada3b91db..b732691cc 100644 --- a/core/modules/widgets/list/listviews/classic.js +++ b/core/modules/widgets/list/listviews/classic.js @@ -17,8 +17,11 @@ var ClassicListView = function(listWidget) { } ClassicListView.prototype.navigateTo = function(historyInfo) { - var listElementIndex = this.listWidget.findListElementByTitle(0,historyInfo.title), - listElementNode = this.listWidget.children[listElementIndex], + var listElementIndex = this.listWidget.findListElementByTitle(0,historyInfo.title); + if(listElementIndex === undefined) { + return; + } + var listElementNode = this.listWidget.children[listElementIndex], targetElement = listElementNode.domNode; // Scroll the node into view var scrollEvent = document.createEvent("Event");