fix(categories): Fix Sentry #11613

This commit is contained in:
Ben Gotow 2016-02-07 01:08:25 -08:00
parent 4641fc4938
commit ed0562fe2c

View file

@ -93,6 +93,7 @@ class CategoryStore extends NylasStore
getArchiveCategory: (accountOrId) ->
return null unless accountOrId
account = asAccount(accountOrId)
return null unless account
if account.usesFolders()
return @getStandardCategory(account.id, "archive")