{"action":"closed","issue":{"url":"https://api.github.com/repos/SwiftBond/Bond/issues/19","labels_url":"https://api.github.com/repos/SwiftBond/Bond/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/SwiftBond/Bond/issues/19/comments","events_url":"https://api.github.com/repos/SwiftBond/Bond/issues/19/events","html_url":"https://github.com/SwiftBond/Bond/issues/19","id":59789947,"number":19,"title":"asObservableFor causes a crash if the property value is nil","user":{"login":"serieuxchat","id":626743,"avatar_url":"https://avatars.githubusercontent.com/u/626743?v=3","gravatar_id":"","url":"https://api.github.com/users/serieuxchat","html_url":"https://github.com/serieuxchat","followers_url":"https://api.github.com/users/serieuxchat/followers","following_url":"https://api.github.com/users/serieuxchat/following{/other_user}","gists_url":"https://api.github.com/users/serieuxchat/gists{/gist_id}","starred_url":"https://api.github.com/users/serieuxchat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serieuxchat/subscriptions","organizations_url":"https://api.github.com/users/serieuxchat/orgs","repos_url":"https://api.github.com/users/serieuxchat/repos","events_url":"https://api.github.com/users/serieuxchat/events{/privacy}","received_events_url":"https://api.github.com/users/serieuxchat/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SwiftBond/Bond/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-04T12:15:39Z","updated_at":"2015-03-04T21:30:55Z","closed_at":"2015-03-04T21:30:55Z","body":"I have a class Person with a property commonName. In some cases the value of this property is nil.\r\n\r\nIf I would like to watch this property, I do the following:\r\n\r\n// Suppose that p is of type Person\r\nvar commonNameDynamic = Dynamic<String>.asObservableFor(p, keyPath: \"commonName\")\r\n\r\nThis causes a crash if the value of commonName is nil.\r\n"}}