Check that getApplicationByName() got something before using it, avoids hidden error loading sideboxes for apps with no tab

This commit is contained in:
Nathan Gray 2015-03-09 19:22:30 +00:00
parent b9f502c10c
commit 424121032f

View File

@ -351,7 +351,7 @@
if (typeof _app == 'string') _app = this.getApplicationByName(_app);
//Set the sidebox width if a application specific sidebox width is set
if (_app == _app.parentFw.activeApp && _app.sideboxWidth !== false )
if (_app && _app == _app.parentFw.activeApp && _app.sideboxWidth !== false )
{
this.splitterUi.constraints[0].size = _app.sideboxWidth;
}