Add null guard.

This commit is contained in:
bootstraponline
2012-08-06 13:49:48 -06:00
parent 19e3987ae3
commit 88b0b608f4
@@ -167,7 +167,7 @@
setActiveLanguage: function( name ) {
// On first load _ACTIVE_LANG.length is 0 and evtChangeFormat isn't called.
if ( LanguageDefinition._ACTIVE_LANG.length <= 0 ) {
if ( LanguageDefinition._ACTIVE_LANG != null && LanguageDefinition._ACTIVE_LANG.length <= 0 ) {
FormatSelector.updateCommitMessage( name );
}