{"action":"opened","issue":{"url":"https://api.github.com/repos/googleads/googleads-dotnet-lib/issues/172","repository_url":"https://api.github.com/repos/googleads/googleads-dotnet-lib","labels_url":"https://api.github.com/repos/googleads/googleads-dotnet-lib/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/googleads/googleads-dotnet-lib/issues/172/comments","events_url":"https://api.github.com/repos/googleads/googleads-dotnet-lib/issues/172/events","html_url":"https://github.com/googleads/googleads-dotnet-lib/issues/172","id":332866245,"node_id":"MDU6SXNzdWUzMzI4NjYyNDU=","number":172,"title":"OAuth2ProviderForApplications.GetAuthorizationUrl() NullReferenceException","user":{"login":"jesuissur","id":136296,"node_id":"MDQ6VXNlcjEzNjI5Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/136296?v=4","gravatar_id":"","url":"https://api.github.com/users/jesuissur","html_url":"https://github.com/jesuissur","followers_url":"https://api.github.com/users/jesuissur/followers","following_url":"https://api.github.com/users/jesuissur/following{/other_user}","gists_url":"https://api.github.com/users/jesuissur/gists{/gist_id}","starred_url":"https://api.github.com/users/jesuissur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesuissur/subscriptions","organizations_url":"https://api.github.com/users/jesuissur/orgs","repos_url":"https://api.github.com/users/jesuissur/repos","events_url":"https://api.github.com/users/jesuissur/events{/privacy}","received_events_url":"https://api.github.com/users/jesuissur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-15T18:01:38Z","updated_at":"2018-06-15T18:01:38Z","closed_at":null,"author_association":"NONE","body":"Hi\r\n\r\nWe're using the v23.5.0 and got a NullReferenceException when calling the `GetAuthorizationUrl()` method.\r\n\r\nOur first debugging session seems to point the problem in the `ParameterUtils.IterateParameters` method.  Shouldn't we have this condition `if (propertyType.GetTypeInfo().IsValueType **&&** value != null)` instead of `if (propertyType.GetTypeInfo().IsValueType **||** value != null)`\r\n\r\nThis is our code that was working before the update\r\n```\r\n            var config = new AdWordsAppConfig();\r\n            config.OAuth2RedirectUri = GetRedirectUri();\r\n\r\n            // Create an OAuth2 object for handling OAuth2 flow.\r\n            var oAuth = new OAuth2ProviderForApplications(config);\r\n            oAuth.IsOffline = true;\r\n\r\n            return oAuth.GetAuthorizationUrl();\r\n"}}
{"actor":{"display_login":"jesuissur"}}