{"action":"opened","issue":{"url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/issues/469","repository_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS","labels_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/issues/469/labels{/name}","comments_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/issues/469/comments","events_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/issues/469/events","html_url":"https://github.com/ChatSecure/ChatSecure-iOS/issues/469","id":148777321,"number":469,"title":"Fix crash when enumerating accounts","user":{"login":"chrisballinger","id":518687,"avatar_url":"https://avatars.githubusercontent.com/u/518687?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisballinger","html_url":"https://github.com/chrisballinger","followers_url":"https://api.github.com/users/chrisballinger/followers","following_url":"https://api.github.com/users/chrisballinger/following{/other_user}","gists_url":"https://api.github.com/users/chrisballinger/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisballinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisballinger/subscriptions","organizations_url":"https://api.github.com/users/chrisballinger/orgs","repos_url":"https://api.github.com/users/chrisballinger/repos","events_url":"https://api.github.com/users/chrisballinger/events{/privacy}","received_events_url":"https://api.github.com/users/chrisballinger/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/labels/Bug","name":"Bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-15T21:47:11Z","updated_at":"2016-04-15T21:47:11Z","closed_at":null,"body":"```\r\nLast Exception Backtrace:\r\n0   CoreFoundation                       0x0000000181eeee38 __exceptionPreprocess + 124\r\n1   libobjc.A.dylib                      0x0000000181553f80 objc_exception_throw + 52\r\n2   CoreFoundation                       0x0000000181dd27c8 -[__NSArrayM insertObject:atIndex:] + 804\r\n3   ChatSecureCore                       0x0000000101907cc0 __41+[OTRAccount allAccountsWithTransaction:]_block_invoke (OTRAccount.m:176)\r\n4   CoreFoundation                       0x0000000181ddfa04 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 128\r\n5   CoreFoundation                       0x0000000181ddf874 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 168\r\n6   ChatSecureCore                       0x0000000101907bcc +[OTRAccount allAccountsWithTransaction:] (OTRAccount.m:175)\r\n7   ChatSecureCore                       0x00000001018ddc54 __42+[OTRAccountsManager allAutoLoginAccounts]_block_invoke (OTRAccountsManager.m:83)\r\n8   YapDatabase                          0x0000000101371a10 __39-[YapDatabaseConnection readWithBlock:]_block_invoke (YapDatabaseConnection.m:1775)\r\n```\r\n\r\n\r\nThe fix is easy enough.. just check for nil. However the cause is uncertain. https://github.com/yapstudios/YapDatabase/issues/310\r\n\r\n"}}