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:19:41 +00:00
parent 965e56e02e
commit 1f65eee3fc

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;
}