diff --git a/src/sunstone/public/app/sunstone.js b/src/sunstone/public/app/sunstone.js index 17b37adcef..8e8f8063f3 100644 --- a/src/sunstone/public/app/sunstone.js +++ b/src/sunstone/public/app/sunstone.js @@ -542,16 +542,19 @@ define(function(require) { active = true; } - var panelInstance = new Panel(info); - - panelInstances.push(panelInstance); - templatePanelsParams.push({ - 'panelName': panelName, - 'icon': panelInstance.icon, - 'title': panelInstance.title, - 'html': panelInstance.html(), - 'active': active - }) + try { + var panelInstance = new Panel(info); + panelInstances.push(panelInstance); + templatePanelsParams.push({ + 'panelName': panelName, + 'icon': panelInstance.icon, + 'title': panelInstance.title, + 'html': panelInstance.html(), + 'active': active + }) + } catch(err) { + console.log(err); + } active = false; }