{"action":"created","issue":{"url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/177","labels_url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/177/comments","events_url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/177/events","html_url":"https://github.com/mikeedwards83/Glass.Mapper/issues/177","id":109755196,"number":177,"title":"Image field null after upgrade","user":{"login":"hiraldesai","id":1005174,"avatar_url":"https://avatars.githubusercontent.com/u/1005174?v=3","gravatar_id":"","url":"https://api.github.com/users/hiraldesai","html_url":"https://github.com/hiraldesai","followers_url":"https://api.github.com/users/hiraldesai/followers","following_url":"https://api.github.com/users/hiraldesai/following{/other_user}","gists_url":"https://api.github.com/users/hiraldesai/gists{/gist_id}","starred_url":"https://api.github.com/users/hiraldesai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiraldesai/subscriptions","organizations_url":"https://api.github.com/users/hiraldesai/orgs","repos_url":"https://api.github.com/users/hiraldesai/repos","events_url":"https://api.github.com/users/hiraldesai/events{/privacy}","received_events_url":"https://api.github.com/users/hiraldesai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-05T08:57:56Z","updated_at":"2015-10-05T09:12:30Z","closed_at":null,"body":"Hi guys,\r\n\r\nAnother minor issue with upgrade from v4.0.1.5 to v4.0.3.51. Can someone please confirm if this is expected or accidental breakage (this could very well be an expected behaviour and a developer oversight with null checking but wanted to double-check)?\r\n\r\nAll the fields with `Glass.Mapper.Sc.Fields.Image` as their type used to default to a non-null Image object with empty `Src` property on it. The new version doesn't seem to do that. I'm happy to add the null checks everywhere but how about existing `EditFrame` items in our views? Shouldn't they be working as before even when image is null?\r\n\r\nThis is the code that breaks with upgrade when there's no image configured in Sitecore for a given view rendering.\r\n```\r\nusing (BeginEditFrame(Model, \"Select Image\", x => x.Image)\r\n```\r\nwhich I'm fixing by this\r\n```\r\nusing (BeginEditFrame(Model, \"Select Image\", x => x.Image.HasValue() ? x.Image : new Glass.Mapper.Sc.Fields.Image()))\r\n```"},"comment":{"url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/comments/145470628","html_url":"https://github.com/mikeedwards83/Glass.Mapper/issues/177#issuecomment-145470628","issue_url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/177","id":145470628,"user":{"login":"cardinal252","id":3605218,"avatar_url":"https://avatars.githubusercontent.com/u/3605218?v=3","gravatar_id":"","url":"https://api.github.com/users/cardinal252","html_url":"https://github.com/cardinal252","followers_url":"https://api.github.com/users/cardinal252/followers","following_url":"https://api.github.com/users/cardinal252/following{/other_user}","gists_url":"https://api.github.com/users/cardinal252/gists{/gist_id}","starred_url":"https://api.github.com/users/cardinal252/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cardinal252/subscriptions","organizations_url":"https://api.github.com/users/cardinal252/orgs","repos_url":"https://api.github.com/users/cardinal252/repos","events_url":"https://api.github.com/users/cardinal252/events{/privacy}","received_events_url":"https://api.github.com/users/cardinal252/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T09:12:30Z","updated_at":"2015-10-05T09:12:30Z","body":"This one I am not sure on - @mikeedwards83 - any thoughts ?"}}