{"action":"created","issue":{"url":"https://api.github.com/repos/agileobjects/AgileMapper/issues/11","repository_url":"https://api.github.com/repos/agileobjects/AgileMapper","labels_url":"https://api.github.com/repos/agileobjects/AgileMapper/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/agileobjects/AgileMapper/issues/11/comments","events_url":"https://api.github.com/repos/agileobjects/AgileMapper/issues/11/events","html_url":"https://github.com/agileobjects/AgileMapper/issues/11","id":214426551,"number":11,"title":"NullReferenceException mapping from interface","user":{"login":"kwaclaw","id":655530,"avatar_url":"https://avatars1.githubusercontent.com/u/655530?v=3","gravatar_id":"","url":"https://api.github.com/users/kwaclaw","html_url":"https://github.com/kwaclaw","followers_url":"https://api.github.com/users/kwaclaw/followers","following_url":"https://api.github.com/users/kwaclaw/following{/other_user}","gists_url":"https://api.github.com/users/kwaclaw/gists{/gist_id}","starred_url":"https://api.github.com/users/kwaclaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwaclaw/subscriptions","organizations_url":"https://api.github.com/users/kwaclaw/orgs","repos_url":"https://api.github.com/users/kwaclaw/repos","events_url":"https://api.github.com/users/kwaclaw/events{/privacy}","received_events_url":"https://api.github.com/users/kwaclaw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"SteveWilkes","id":8459425,"avatar_url":"https://avatars3.githubusercontent.com/u/8459425?v=3","gravatar_id":"","url":"https://api.github.com/users/SteveWilkes","html_url":"https://github.com/SteveWilkes","followers_url":"https://api.github.com/users/SteveWilkes/followers","following_url":"https://api.github.com/users/SteveWilkes/following{/other_user}","gists_url":"https://api.github.com/users/SteveWilkes/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveWilkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveWilkes/subscriptions","organizations_url":"https://api.github.com/users/SteveWilkes/orgs","repos_url":"https://api.github.com/users/SteveWilkes/repos","events_url":"https://api.github.com/users/SteveWilkes/events{/privacy}","received_events_url":"https://api.github.com/users/SteveWilkes/received_events","type":"User","site_admin":false},"assignees":[{"login":"SteveWilkes","id":8459425,"avatar_url":"https://avatars3.githubusercontent.com/u/8459425?v=3","gravatar_id":"","url":"https://api.github.com/users/SteveWilkes","html_url":"https://github.com/SteveWilkes","followers_url":"https://api.github.com/users/SteveWilkes/followers","following_url":"https://api.github.com/users/SteveWilkes/following{/other_user}","gists_url":"https://api.github.com/users/SteveWilkes/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveWilkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveWilkes/subscriptions","organizations_url":"https://api.github.com/users/SteveWilkes/orgs","repos_url":"https://api.github.com/users/SteveWilkes/repos","events_url":"https://api.github.com/users/SteveWilkes/events{/privacy}","received_events_url":"https://api.github.com/users/SteveWilkes/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-03-15T15:25:38Z","updated_at":"2017-03-22T19:05:23Z","closed_at":null,"body":"It seems mapping from an interface is not supported?\r\nThis test case results in a null reference exception:\r\n```\r\n        public class InterfaceTest: IInterfaceTest\r\n        {\r\n            public string Name { get; set; }\r\n        }\r\n\r\n        public interface IInterfaceTest\r\n        {\r\n            string Name { get; set; }\r\n        }\r\n\r\n        public class InterfaceTest2\r\n        {\r\n            public string Name { get; set; }\r\n        }\r\n\r\n        [Fact]\r\n        public void MapInterface() {\r\n            var objImpl = new InterfaceTest { Name = \"Test\" };\r\n            IInterfaceTest obj = objImpl;\r\n            var obj2 = Mapper.Map(obj).ToANew<InterfaceTest2>();\r\n            //var obj2 = new DictTest2 { JobDataMap = new Dictionary<string, object>() };\r\n            //Mapper.Map(obj).Over(obj2);\r\n        }\r\n```"},"comment":{"url":"https://api.github.com/repos/agileobjects/AgileMapper/issues/comments/288506340","html_url":"https://github.com/agileobjects/AgileMapper/issues/11#issuecomment-288506340","issue_url":"https://api.github.com/repos/agileobjects/AgileMapper/issues/11","id":288506340,"user":{"login":"SteveWilkes","id":8459425,"avatar_url":"https://avatars3.githubusercontent.com/u/8459425?v=3","gravatar_id":"","url":"https://api.github.com/users/SteveWilkes","html_url":"https://github.com/SteveWilkes","followers_url":"https://api.github.com/users/SteveWilkes/followers","following_url":"https://api.github.com/users/SteveWilkes/following{/other_user}","gists_url":"https://api.github.com/users/SteveWilkes/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveWilkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveWilkes/subscriptions","organizations_url":"https://api.github.com/users/SteveWilkes/orgs","repos_url":"https://api.github.com/users/SteveWilkes/repos","events_url":"https://api.github.com/users/SteveWilkes/events{/privacy}","received_events_url":"https://api.github.com/users/SteveWilkes/received_events","type":"User","site_admin":false},"created_at":"2017-03-22T19:05:23Z","updated_at":"2017-03-22T19:05:23Z","body":"I've committed [a fix](https://github.com/agileobjects/AgileMapper/commit/84cf4b291daa5414b514e00587f74df6d44686d0) for this - I'll sort out the other issues before doing another release."}}
{"actor":{"display_login":"SteveWilkes"}}