mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Guard against undefined state in Workspace.deserialize
This commit is contained in:
@@ -29,6 +29,8 @@ class Workspace extends Model
|
||||
atom.deserializers.add(this)
|
||||
|
||||
@deserialize: (state) ->
|
||||
return unless state?
|
||||
|
||||
for packageName in state.packagesWithActiveGrammars ? []
|
||||
atom.packages.getLoadedPackage(packageName)?.loadGrammarsSync()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user