{"action":"created","issue":{"url":"https://api.github.com/repos/castleproject/Windsor/issues/127","repository_url":"https://api.github.com/repos/castleproject/Windsor","labels_url":"https://api.github.com/repos/castleproject/Windsor/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/castleproject/Windsor/issues/127/comments","events_url":"https://api.github.com/repos/castleproject/Windsor/issues/127/events","html_url":"https://github.com/castleproject/Windsor/issues/127","id":141511880,"number":127,"title":"Implicit cast converts null to object","user":{"login":"Toxantron","id":14931448,"avatar_url":"https://avatars.githubusercontent.com/u/14931448?v=3","gravatar_id":"","url":"https://api.github.com/users/Toxantron","html_url":"https://github.com/Toxantron","followers_url":"https://api.github.com/users/Toxantron/followers","following_url":"https://api.github.com/users/Toxantron/following{/other_user}","gists_url":"https://api.github.com/users/Toxantron/gists{/gist_id}","starred_url":"https://api.github.com/users/Toxantron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Toxantron/subscriptions","organizations_url":"https://api.github.com/users/Toxantron/orgs","repos_url":"https://api.github.com/users/Toxantron/repos","events_url":"https://api.github.com/users/Toxantron/events{/privacy}","received_events_url":"https://api.github.com/users/Toxantron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-17T08:24:36Z","updated_at":"2016-04-06T09:41:36Z","closed_at":null,"body":"In [ServiceOverride.cs L82](https://github.com/castleproject/Windsor/blob/master/src/Castle.Windsor/MicroKernel/Registration/ServiceOverride.cs#L82) the implicit cast converts a ServiceOverride of null into an object. This took me a while to figure out because it is behavior I never saw before. Is this intended?\r\n````c#\r\npublic static implicit operator Dependency(ServiceOverride item)\r\n{\r\n    return new Dependency(item);\r\n}\r\n````\r\n\r\nI would have expected the cast like this:\r\n````c#\r\npublic static implicit operator Dependency(ServiceOverride item)\r\n{\r\n    return item == null ? null : new Dependency(item);\r\n}\r\n````"},"comment":{"url":"https://api.github.com/repos/castleproject/Windsor/issues/comments/206262526","html_url":"https://github.com/castleproject/Windsor/issues/127#issuecomment-206262526","issue_url":"https://api.github.com/repos/castleproject/Windsor/issues/127","id":206262526,"user":{"login":"jonorossi","id":126297,"avatar_url":"https://avatars.githubusercontent.com/u/126297?v=3","gravatar_id":"","url":"https://api.github.com/users/jonorossi","html_url":"https://github.com/jonorossi","followers_url":"https://api.github.com/users/jonorossi/followers","following_url":"https://api.github.com/users/jonorossi/following{/other_user}","gists_url":"https://api.github.com/users/jonorossi/gists{/gist_id}","starred_url":"https://api.github.com/users/jonorossi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonorossi/subscriptions","organizations_url":"https://api.github.com/users/jonorossi/orgs","repos_url":"https://api.github.com/users/jonorossi/repos","events_url":"https://api.github.com/users/jonorossi/events{/privacy}","received_events_url":"https://api.github.com/users/jonorossi/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T09:41:36Z","updated_at":"2016-04-06T09:41:36Z","body":"@Toxantron I've removed the .gitattributes file, as you worked out that is when the problems started, also we don't have one in Castle Core where we also haven't yet normalised the line endings.\r\n\r\n7dc1a89a097d4c0b1122484eaee8ffdde04b45c2 contains the 5 LOC changes."}}