From 9ff00b0f6061a24b508423afd4c65f03b66f7c6c Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Tue, 1 Nov 2016 02:09:34 +0100 Subject: [PATCH] Fixed small bug: error message if folder is unaccessible [permissions...] --- js/dialogs/ImportPanel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/dialogs/ImportPanel.js b/js/dialogs/ImportPanel.js index 1326a44..43aeba9 100644 --- a/js/dialogs/ImportPanel.js +++ b/js/dialogs/ImportPanel.js @@ -150,7 +150,7 @@ Zarafa.plugins.contactimporter.dialogs.ImportPanel = Ext.extend(Ext.Panel, { if (!Ext.isEmpty(inbox.subStores) && inbox.subStores.folders.totalLength > 0) { for (var i = 0; i < inbox.subStores.folders.totalLength; i++) { var folder = inbox.subStores.folders.getAt(i); - if (folder.get("container_class") == "IPF.Contact") { + if (!Ext.isEmpty(folder) && folder.get("container_class") == "IPF.Contact") { if (asDropdownStore) { allFolders.push([ folder.get("entryid"), @@ -171,7 +171,7 @@ Zarafa.plugins.contactimporter.dialogs.ImportPanel = Ext.extend(Ext.Panel, { if (!Ext.isEmpty(pub.subStores) && pub.subStores.folders.totalLength > 0) { for (var j = 0; j < pub.subStores.folders.totalLength; j++) { var folder = pub.subStores.folders.getAt(j); - if (folder.get("container_class") == "IPF.Contact") { + if (!Ext.isEmpty(folder) && folder.get("container_class") == "IPF.Contact") { if (asDropdownStore) { allFolders.push([ folder.get("entryid"),