diff --git a/src/sunstone/public/app/sunstone.js b/src/sunstone/public/app/sunstone.js index 9b46351406..9d587af8ac 100644 --- a/src/sunstone/public/app/sunstone.js +++ b/src/sunstone/public/app/sunstone.js @@ -770,10 +770,11 @@ define(function(require) { var context = $("#" + tabId); //$(".right-form", context).html(content); var formPanelInstance = SunstoneCfg["tabs"][tabId].activeFormPanel; - - // Set title and button strings - $(".right-form-title", context).text(formPanelInstance.title()); - $(".submit_button", context).text(formPanelInstance.buttonText()); + if (formPanelInstance) { + // Set title and button strings + $(".right-form-title", context).text(formPanelInstance.title()); + $(".submit_button", context).text(formPanelInstance.buttonText()); + } $(".loadingForm", context).hide(); $(".tabs-contentForm", context).show();