From: Andrew Dolgov Date: Thu, 1 Sep 2011 12:13:08 +0000 (+0400) Subject: feedtree, check for _itemsByIdentity being filled in getNextUnreadFeed X-Git-Tag: 1.5.6~31 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6a0906d1e6b3cae5fbf01b1e51acbfa8c03c72de;p=tt-rss.git feedtree, check for _itemsByIdentity being filled in getNextUnreadFeed --- diff --git a/FeedTree.js b/FeedTree.js index 3200e590..ca100254 100644 --- a/FeedTree.js +++ b/FeedTree.js @@ -53,6 +53,9 @@ dojo.declare("fox.FeedStoreModel", dijit.tree.ForestStoreModel, { return this.store.setValue(treeItem, key, value); }, getNextUnreadFeed: function (feed, is_cat) { + if (!this.store._itemsByIdentity) + return null; + if (is_cat) { treeItem = this.store._itemsByIdentity['CAT:' + feed]; items = this.store._arrayOfTopLevelItems;