{"action":"created","issue":{"url":"https://api.github.com/repos/gavinbunney/Toucan/issues/46","repository_url":"https://api.github.com/repos/gavinbunney/Toucan","labels_url":"https://api.github.com/repos/gavinbunney/Toucan/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/gavinbunney/Toucan/issues/46/comments","events_url":"https://api.github.com/repos/gavinbunney/Toucan/issues/46/events","html_url":"https://github.com/gavinbunney/Toucan/issues/46","id":179116470,"number":46,"title":"Crash","user":{"login":"pjebs","id":5377970,"avatar_url":"https://avatars1.githubusercontent.com/u/5377970?v=4","gravatar_id":"","url":"https://api.github.com/users/pjebs","html_url":"https://github.com/pjebs","followers_url":"https://api.github.com/users/pjebs/followers","following_url":"https://api.github.com/users/pjebs/following{/other_user}","gists_url":"https://api.github.com/users/pjebs/gists{/gist_id}","starred_url":"https://api.github.com/users/pjebs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjebs/subscriptions","organizations_url":"https://api.github.com/users/pjebs/orgs","repos_url":"https://api.github.com/users/pjebs/repos","events_url":"https://api.github.com/users/pjebs/events{/privacy}","received_events_url":"https://api.github.com/users/pjebs/received_events","type":"User","site_admin":false},"labels":[{"id":121786756,"url":"https://api.github.com/repos/gavinbunney/Toucan/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-25T23:43:41Z","updated_at":"2017-08-03T15:36:50Z","closed_at":null,"body":"My app keeps crashing at this point when I try to resize an image and add a corner radius mask:\n\nThe crash occurs at this point:\n\n```\n        static func drawImageWithClosure(size size: CGSize!, closure: (size: CGSize, context: CGContext) -> ()) -> UIImage {\n            UIGraphicsBeginImageContextWithOptions(size, false, 0)\n            closure(size: size, context: UIGraphicsGetCurrentContext()!)\n            let image : UIImage = UIGraphicsGetImageFromCurrentImageContext()\n            UIGraphicsEndImageContext()\n            return image\n        }\n```\n\nUIGraphicsGetCurrentContext()! ==> fatal error: unexpectedly found nil while unwrapping an Optional value\n"},"comment":{"url":"https://api.github.com/repos/gavinbunney/Toucan/issues/comments/320006300","html_url":"https://github.com/gavinbunney/Toucan/issues/46#issuecomment-320006300","issue_url":"https://api.github.com/repos/gavinbunney/Toucan/issues/46","id":320006300,"user":{"login":"Appsido","id":1225240,"avatar_url":"https://avatars3.githubusercontent.com/u/1225240?v=4","gravatar_id":"","url":"https://api.github.com/users/Appsido","html_url":"https://github.com/Appsido","followers_url":"https://api.github.com/users/Appsido/followers","following_url":"https://api.github.com/users/Appsido/following{/other_user}","gists_url":"https://api.github.com/users/Appsido/gists{/gist_id}","starred_url":"https://api.github.com/users/Appsido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Appsido/subscriptions","organizations_url":"https://api.github.com/users/Appsido/orgs","repos_url":"https://api.github.com/users/Appsido/repos","events_url":"https://api.github.com/users/Appsido/events{/privacy}","received_events_url":"https://api.github.com/users/Appsido/received_events","type":"User","site_admin":false},"created_at":"2017-08-03T15:36:50Z","updated_at":"2017-08-03T15:36:50Z","body":"Same problem here while scrolling in table view. The problem is due to force unwrap UIGraphicsGetCurrentContext() in static func drawImageWithClosure method"}}
{"actor":{"display_login":"Appsido"}}