]> git.wh0rd.org Git - tt-rss.git/commitdiff
feedtree, check for _itemsByIdentity being filled in getNextUnreadFeed
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 1 Sep 2011 12:13:08 +0000 (16:13 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 1 Sep 2011 12:13:08 +0000 (16:13 +0400)
FeedTree.js

index 3200e59037e37ae67cf070da7641b25f5409d8ff..ca100254971431ed52238c2ed81970b15617ce9e 100644 (file)
@@ -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;