{"action":"created","issue":{"url":"https://api.github.com/repos/spark/spark-sdk-ios/issues/27","labels_url":"https://api.github.com/repos/spark/spark-sdk-ios/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/spark/spark-sdk-ios/issues/27/comments","events_url":"https://api.github.com/repos/spark/spark-sdk-ios/issues/27/events","html_url":"https://github.com/spark/spark-sdk-ios/issues/27","id":114536242,"number":27,"title":"Photon setup crash on “Check for internet connectivity” ","user":{"login":"williamhqs","id":354829,"avatar_url":"https://avatars.githubusercontent.com/u/354829?v=3","gravatar_id":"","url":"https://api.github.com/users/williamhqs","html_url":"https://github.com/williamhqs","followers_url":"https://api.github.com/users/williamhqs/followers","following_url":"https://api.github.com/users/williamhqs/following{/other_user}","gists_url":"https://api.github.com/users/williamhqs/gists{/gist_id}","starred_url":"https://api.github.com/users/williamhqs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williamhqs/subscriptions","organizations_url":"https://api.github.com/users/williamhqs/orgs","repos_url":"https://api.github.com/users/williamhqs/repos","events_url":"https://api.github.com/users/williamhqs/events{/privacy}","received_events_url":"https://api.github.com/users/williamhqs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-02T06:44:53Z","updated_at":"2015-11-02T18:02:03Z","closed_at":null,"body":"\r\nAfter choose your own wifi network and input the password it goes into this page and crash on \"Check for interest connectivity\"\r\n\r\n![2 pic](https://cloud.githubusercontent.com/assets/354829/10875504/24b466da-816e-11e5-906f-2eeb9a3498d4.jpg)\r\n\r\nWhat i do is just put these two lines into the button action:\r\n```\r\n       let setupController = SparkSetupMainController()\r\n        self.presentViewController(setupController, animated: true, completion: nil)\r\n```\r\nlog error is:\r\n```\r\nTerminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil'\r\n```\r\nCrashes failure in this function:\r\n```-(void)getDevices:(void (^)(NSArray *sparkDevices, NSError *error))completion```\r\n<img width=\"717\" alt=\"screen shot 2015-11-02 at 11 15 05 am\" src=\"https://cloud.githubusercontent.com/assets/354829/10875673/34bb3e1c-8170-11e5-9da8-ec150f1ef526.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/spark/spark-sdk-ios/issues/comments/153102728","html_url":"https://github.com/spark/spark-sdk-ios/issues/27#issuecomment-153102728","issue_url":"https://api.github.com/repos/spark/spark-sdk-ios/issues/27","id":153102728,"user":{"login":"idokleinman","id":6490062,"avatar_url":"https://avatars.githubusercontent.com/u/6490062?v=3","gravatar_id":"","url":"https://api.github.com/users/idokleinman","html_url":"https://github.com/idokleinman","followers_url":"https://api.github.com/users/idokleinman/followers","following_url":"https://api.github.com/users/idokleinman/following{/other_user}","gists_url":"https://api.github.com/users/idokleinman/gists{/gist_id}","starred_url":"https://api.github.com/users/idokleinman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idokleinman/subscriptions","organizations_url":"https://api.github.com/users/idokleinman/orgs","repos_url":"https://api.github.com/users/idokleinman/repos","events_url":"https://api.github.com/users/idokleinman/events{/privacy}","received_events_url":"https://api.github.com/users/idokleinman/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T18:02:03Z","updated_at":"2015-11-02T18:02:03Z","body":"Thanks for reporting, I'll look into it.\r\nDoes it happen always or only on some cases?\r\n"}}