{"action":"closed","issue":{"url":"https://api.github.com/repos/appsquickly/Typhoon/issues/314","labels_url":"https://api.github.com/repos/appsquickly/Typhoon/issues/314/labels{/name}","comments_url":"https://api.github.com/repos/appsquickly/Typhoon/issues/314/comments","events_url":"https://api.github.com/repos/appsquickly/Typhoon/issues/314/events","html_url":"https://github.com/appsquickly/Typhoon/issues/314","id":55704655,"number":314,"title":"Initializers returning nil cause Typhoon to crash","user":{"login":"rodgutierrez","id":180886,"avatar_url":"https://avatars.githubusercontent.com/u/180886?v=3","gravatar_id":"","url":"https://api.github.com/users/rodgutierrez","html_url":"https://github.com/rodgutierrez","followers_url":"https://api.github.com/users/rodgutierrez/followers","following_url":"https://api.github.com/users/rodgutierrez/following{/other_user}","gists_url":"https://api.github.com/users/rodgutierrez/gists{/gist_id}","starred_url":"https://api.github.com/users/rodgutierrez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodgutierrez/subscriptions","organizations_url":"https://api.github.com/users/rodgutierrez/orgs","repos_url":"https://api.github.com/users/rodgutierrez/repos","events_url":"https://api.github.com/users/rodgutierrez/events{/privacy}","received_events_url":"https://api.github.com/users/rodgutierrez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appsquickly/Typhoon/labels/ready-for-review","name":"ready-for-review","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-28T02:14:03Z","updated_at":"2015-02-14T13:56:31Z","closed_at":"2015-02-14T13:56:31Z","body":"I'm using Typhoon to inject an instance of a class that is only supported on certain versions of iOS (it's a wrapper for HealthKit functionality). When this class is instantiated on unsupported versions of iOS its initializer returns `nil`, which appears to be [acceptable behavior](https://developer.apple.com/library/ios/documentation/General/Conceptual/CocoaEncyclopedia/Initialization/Initialization.html). However this pattern is causing Typhoon to crash.\r\n\r\nThis crash is happening while running Typhoon 2.3.1 in `TyphoonComponentFactory` on line 379. Here's the error:\r\n\r\n```\r\n2015-01-27 18:08:33.702 Strava[17099:607] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: healthStoreService)'\r\n```"}}