{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/908","repository_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX","labels_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/908/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/908/comments","events_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/908/events","html_url":"https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/issues/908","id":150697326,"number":908,"title":"PFFieldOperation Crash More Prominent","user":{"login":"acegreen","id":10794609,"avatar_url":"https://avatars.githubusercontent.com/u/10794609?v=3","gravatar_id":"","url":"https://api.github.com/users/acegreen","html_url":"https://github.com/acegreen","followers_url":"https://api.github.com/users/acegreen/followers","following_url":"https://api.github.com/users/acegreen/following{/other_user}","gists_url":"https://api.github.com/users/acegreen/gists{/gist_id}","starred_url":"https://api.github.com/users/acegreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acegreen/subscriptions","organizations_url":"https://api.github.com/users/acegreen/orgs","repos_url":"https://api.github.com/users/acegreen/repos","events_url":"https://api.github.com/users/acegreen/events{/privacy}","received_events_url":"https://api.github.com/users/acegreen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/labels/needs%20more%20info","name":"needs more info","color":"ffd182"}],"state":"closed","locked":false,"assignee":{"login":"nlutsenko","id":606991,"avatar_url":"https://avatars.githubusercontent.com/u/606991?v=3","gravatar_id":"","url":"https://api.github.com/users/nlutsenko","html_url":"https://github.com/nlutsenko","followers_url":"https://api.github.com/users/nlutsenko/followers","following_url":"https://api.github.com/users/nlutsenko/following{/other_user}","gists_url":"https://api.github.com/users/nlutsenko/gists{/gist_id}","starred_url":"https://api.github.com/users/nlutsenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlutsenko/subscriptions","organizations_url":"https://api.github.com/users/nlutsenko/orgs","repos_url":"https://api.github.com/users/nlutsenko/repos","events_url":"https://api.github.com/users/nlutsenko/events{/privacy}","received_events_url":"https://api.github.com/users/nlutsenko/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-04-24T20:39:17Z","updated_at":"2016-06-04T23:01:22Z","closed_at":"2016-05-09T19:41:04Z","body":"Hey, \r\n\r\nI'm noticing a more frequent crash. I'll try to include as much info as I can gather. **This has happened in 13 out of the past 30 days**\r\n\r\n<img width=\"972\" alt=\"screen shot 2016-04-24 at 4 36 11 pm\" src=\"https://cloud.githubusercontent.com/assets/10794609/14770257/ec261524-0a3a-11e6-91dc-334d51eb4bbc.png\">\r\n<img width=\"924\" alt=\"screen shot 2016-04-24 at 4 36 52 pm\" src=\"https://cloud.githubusercontent.com/assets/10794609/14770256/ec247a02-0a3a-11e6-99dd-d105c4fe38fd.png\">\r\n<img width=\"935\" alt=\"screen shot 2016-04-24 at 4 37 14 pm\" src=\"https://cloud.githubusercontent.com/assets/10794609/14770255/ec23ea06-0a3a-11e6-9ca9-2c5d598932f9.png\">"},"comment":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/comments/223783017","html_url":"https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/issues/908#issuecomment-223783017","issue_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/908","id":223783017,"user":{"login":"acegreen","id":10794609,"avatar_url":"https://avatars.githubusercontent.com/u/10794609?v=3","gravatar_id":"","url":"https://api.github.com/users/acegreen","html_url":"https://github.com/acegreen","followers_url":"https://api.github.com/users/acegreen/followers","following_url":"https://api.github.com/users/acegreen/following{/other_user}","gists_url":"https://api.github.com/users/acegreen/gists{/gist_id}","starred_url":"https://api.github.com/users/acegreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acegreen/subscriptions","organizations_url":"https://api.github.com/users/acegreen/orgs","repos_url":"https://api.github.com/users/acegreen/repos","events_url":"https://api.github.com/users/acegreen/events{/privacy}","received_events_url":"https://api.github.com/users/acegreen/received_events","type":"User","site_admin":false},"created_at":"2016-06-04T23:01:22Z","updated_at":"2016-06-04T23:01:22Z","body":"I'm still experiencing this crash and the above description doesn't seem to apply here. Can we reopen this.\r\n\r\nTake a look at the screenshots above, the last function called on my side is the **registerUserChoice()**\r\n\r\n```\r\n    class func registerUserChoice(chart: Chart, and object: PFObject?, with choice: Constants.UserChoices) {\r\n        \r\n        guard (PFUser.currentUser() != nil) else { return }\r\n        \r\n        var removeFromKey: String!\r\n        var addToKey: String!\r\n        \r\n        switch choice {\r\n            \r\n        case .LONG:\r\n            removeFromKey = Constants.UserChoices.SHORT.key()\r\n            addToKey = Constants.UserChoices.LONG.key()\r\n            \r\n        case .SHORT:\r\n            removeFromKey = Constants.UserChoices.LONG.key()\r\n            addToKey = Constants.UserChoices.SHORT.key()\r\n            \r\n        default:\r\n            break\r\n        }\r\n        \r\n        if let object = object {\r\n            \r\n            object.removeObject(PFUser.currentUser()!, forKey: removeFromKey)\r\n            \r\n            if object.objectForKey(addToKey) != nil {\r\n                \r\n                object.addUniqueObject(PFUser.currentUser()!, forKey: addToKey)\r\n                \r\n            } else {\r\n                \r\n                object.setObject([PFUser.currentUser()!], forKey: addToKey)\r\n            }\r\n            \r\n            object.saveEventually({ (success, error) -> Void in\r\n            })\r\n        }\r\n        \r\n        print(\"\\(choice)\", object)\r\n        print(\"Chart:\", chart.searchDescription)\r\n        \r\n        saveIntoCoreData(chart, userChoice: choice)\r\n        \r\n    } \r\n```\r\n\r\nI don't perform two operation on the same object "}}
{"actor":{"display_login":"acegreen"}}