{"action":"created","issue":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1596","repository_url":"https://api.github.com/repos/AutoMapper/AutoMapper","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1596/labels{/name}","comments_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1596/comments","events_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1596/events","html_url":"https://github.com/AutoMapper/AutoMapper/issues/1596","id":169490218,"number":1596,"title":"NUll Reference Exception with 5.0.2.0","user":{"login":"jogibear9988","id":364896,"avatar_url":"https://avatars.githubusercontent.com/u/364896?v=3","gravatar_id":"","url":"https://api.github.com/users/jogibear9988","html_url":"https://github.com/jogibear9988","followers_url":"https://api.github.com/users/jogibear9988/followers","following_url":"https://api.github.com/users/jogibear9988/following{/other_user}","gists_url":"https://api.github.com/users/jogibear9988/gists{/gist_id}","starred_url":"https://api.github.com/users/jogibear9988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jogibear9988/subscriptions","organizations_url":"https://api.github.com/users/jogibear9988/orgs","repos_url":"https://api.github.com/users/jogibear9988/repos","events_url":"https://api.github.com/users/jogibear9988/events{/privacy}","received_events_url":"https://api.github.com/users/jogibear9988/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-08-04T22:43:01Z","updated_at":"2016-08-05T13:56:19Z","closed_at":null,"body":"I've the following code:\r\n\r\nMapper.Initialize(cfg => {\r\n                    cfg.CreateMap(source.GetType(), destination.GetType());\r\n                });\r\n\r\nand I got this null ref exception (used reflector for debugging):\r\n<img width=\"911\" alt=\"bildschirmfoto 2016-08-05 um 00 42 37\" src=\"https://cloud.githubusercontent.com/assets/364896/17420819/8e535374-5aa5-11e6-8711-9643ff0ca491.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/comments/237856858","html_url":"https://github.com/AutoMapper/AutoMapper/issues/1596#issuecomment-237856858","issue_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1596","id":237856858,"user":{"login":"lbargaoanu","id":4517428,"avatar_url":"https://avatars.githubusercontent.com/u/4517428?v=3","gravatar_id":"","url":"https://api.github.com/users/lbargaoanu","html_url":"https://github.com/lbargaoanu","followers_url":"https://api.github.com/users/lbargaoanu/followers","following_url":"https://api.github.com/users/lbargaoanu/following{/other_user}","gists_url":"https://api.github.com/users/lbargaoanu/gists{/gist_id}","starred_url":"https://api.github.com/users/lbargaoanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbargaoanu/subscriptions","organizations_url":"https://api.github.com/users/lbargaoanu/orgs","repos_url":"https://api.github.com/users/lbargaoanu/repos","events_url":"https://api.github.com/users/lbargaoanu/events{/privacy}","received_events_url":"https://api.github.com/users/lbargaoanu/received_events","type":"User","site_admin":false},"created_at":"2016-08-05T13:56:19Z","updated_at":"2016-08-05T13:56:19Z","body":"I presume they're a bunch of numbered locals in the IL. But they could have the courtesy to return something, anything :) Noooo, null is the best."}}
{"actor":{"display_login":"lbargaoanu"}}