Guard against null core.themes

This commit is contained in:
Kevin Sawicki 2013-10-27 18:40:00 -07:00
parent 62f44e64f4
commit e93d83dcdf

View File

@ -11,7 +11,7 @@ class ThemePackage extends AtomPackage
getStylesheetType: -> 'theme'
enable: ->
themes = atom.config.get('core.themes')
themes = atom.config.get('core.themes') ? []
themes.unshift(@metadata.name)
atom.config.set('core.themes', themes)