{"action":"opened","issue":{"url":"https://api.github.com/repos/SparkDevNetwork/Rock/issues/845","labels_url":"https://api.github.com/repos/SparkDevNetwork/Rock/issues/845/labels{/name}","comments_url":"https://api.github.com/repos/SparkDevNetwork/Rock/issues/845/comments","events_url":"https://api.github.com/repos/SparkDevNetwork/Rock/issues/845/events","html_url":"https://github.com/SparkDevNetwork/Rock/issues/845","id":58575254,"number":845,"title":"Bing Location Service fails if no Postal Code returned.","user":{"login":"MrUpsideDown","id":6572015,"avatar_url":"https://avatars.githubusercontent.com/u/6572015?v=3","gravatar_id":"","url":"https://api.github.com/users/MrUpsideDown","html_url":"https://github.com/MrUpsideDown","followers_url":"https://api.github.com/users/MrUpsideDown/followers","following_url":"https://api.github.com/users/MrUpsideDown/following{/other_user}","gists_url":"https://api.github.com/users/MrUpsideDown/gists{/gist_id}","starred_url":"https://api.github.com/users/MrUpsideDown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrUpsideDown/subscriptions","organizations_url":"https://api.github.com/users/MrUpsideDown/orgs","repos_url":"https://api.github.com/users/MrUpsideDown/repos","events_url":"https://api.github.com/users/MrUpsideDown/events{/privacy}","received_events_url":"https://api.github.com/users/MrUpsideDown/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-23T11:42:07Z","updated_at":"2015-02-23T11:42:07Z","closed_at":null,"body":"When the Rock.Address.Bing.VerifyLocation method is called with a location that only has a State and a Country, the Bing Location Service returns a verified address with PostalCode = null. At this point, the VerifyLocation method fails with Exception \"Parameter cannot be null\".\r\n\r\nThe following code change fixes this issue:\r\n\r\nChanging this line:\r\n`if ( !location.PostalCode.StartsWith( address.PostalCode ) )`\r\n\r\nto this:\r\n```\r\nif (address.PostalCode != null\r\n    && !location.PostalCode.StartsWith( address.PostalCode ) )\r\n```\r\n"}}