{"action":"created","issue":{"url":"https://api.github.com/repos/object/Simple.OData.Client/issues/487","repository_url":"https://api.github.com/repos/object/Simple.OData.Client","labels_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/487/labels{/name}","comments_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/487/comments","events_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/487/events","html_url":"https://github.com/object/Simple.OData.Client/issues/487","id":330754116,"node_id":"MDU6SXNzdWUzMzA3NTQxMTY=","number":487,"title":"empty collection properties are deserialized as null","user":{"login":"zivillian","id":6039253,"node_id":"MDQ6VXNlcjYwMzkyNTM=","avatar_url":"https://avatars0.githubusercontent.com/u/6039253?v=4","gravatar_id":"","url":"https://api.github.com/users/zivillian","html_url":"https://github.com/zivillian","followers_url":"https://api.github.com/users/zivillian/followers","following_url":"https://api.github.com/users/zivillian/following{/other_user}","gists_url":"https://api.github.com/users/zivillian/gists{/gist_id}","starred_url":"https://api.github.com/users/zivillian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zivillian/subscriptions","organizations_url":"https://api.github.com/users/zivillian/orgs","repos_url":"https://api.github.com/users/zivillian/repos","events_url":"https://api.github.com/users/zivillian/events{/privacy}","received_events_url":"https://api.github.com/users/zivillian/received_events","type":"User","site_admin":false},"labels":[{"id":27947542,"node_id":"MDU6TGFiZWwyNzk0NzU0Mg==","url":"https://api.github.com/repos/object/Simple.OData.Client/labels/bug","name":"bug","color":"fc2929","default":true},{"id":362883474,"node_id":"MDU6TGFiZWwzNjI4ODM0NzQ=","url":"https://api.github.com/repos/object/Simple.OData.Client/labels/implemented","name":"implemented","color":"c5def5","default":false}],"state":"closed","locked":false,"assignee":{"login":"object","id":252126,"node_id":"MDQ6VXNlcjI1MjEyNg==","avatar_url":"https://avatars3.githubusercontent.com/u/252126?v=4","gravatar_id":"","url":"https://api.github.com/users/object","html_url":"https://github.com/object","followers_url":"https://api.github.com/users/object/followers","following_url":"https://api.github.com/users/object/following{/other_user}","gists_url":"https://api.github.com/users/object/gists{/gist_id}","starred_url":"https://api.github.com/users/object/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/object/subscriptions","organizations_url":"https://api.github.com/users/object/orgs","repos_url":"https://api.github.com/users/object/repos","events_url":"https://api.github.com/users/object/events{/privacy}","received_events_url":"https://api.github.com/users/object/received_events","type":"User","site_admin":false},"assignees":[{"login":"object","id":252126,"node_id":"MDQ6VXNlcjI1MjEyNg==","avatar_url":"https://avatars3.githubusercontent.com/u/252126?v=4","gravatar_id":"","url":"https://api.github.com/users/object","html_url":"https://github.com/object","followers_url":"https://api.github.com/users/object/followers","following_url":"https://api.github.com/users/object/following{/other_user}","gists_url":"https://api.github.com/users/object/gists{/gist_id}","starred_url":"https://api.github.com/users/object/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/object/subscriptions","organizations_url":"https://api.github.com/users/object/orgs","repos_url":"https://api.github.com/users/object/repos","events_url":"https://api.github.com/users/object/events{/privacy}","received_events_url":"https://api.github.com/users/object/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/object/Simple.OData.Client/milestones/25","html_url":"https://github.com/object/Simple.OData.Client/milestone/25","labels_url":"https://api.github.com/repos/object/Simple.OData.Client/milestones/25/labels","id":3389331,"node_id":"MDk6TWlsZXN0b25lMzM4OTMzMQ==","number":25,"title":"5.3","description":null,"creator":{"login":"object","id":252126,"node_id":"MDQ6VXNlcjI1MjEyNg==","avatar_url":"https://avatars3.githubusercontent.com/u/252126?v=4","gravatar_id":"","url":"https://api.github.com/users/object","html_url":"https://github.com/object","followers_url":"https://api.github.com/users/object/followers","following_url":"https://api.github.com/users/object/following{/other_user}","gists_url":"https://api.github.com/users/object/gists{/gist_id}","starred_url":"https://api.github.com/users/object/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/object/subscriptions","organizations_url":"https://api.github.com/users/object/orgs","repos_url":"https://api.github.com/users/object/repos","events_url":"https://api.github.com/users/object/events{/privacy}","received_events_url":"https://api.github.com/users/object/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":1,"state":"open","created_at":"2018-05-31T05:26:20Z","updated_at":"2018-06-11T06:12:37Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-06-08T18:11:22Z","updated_at":"2018-06-11T06:12:37Z","closed_at":"2018-06-11T06:12:37Z","author_association":"NONE","body":"When expanding a collection property this may be an empty collection like in this example:\r\n[TripPinService/People('keithpinckney')?$expand=Trips&$select=Trips,UserName](http://services.odata.org/V4/TripPinService/People('keithpinckney')?$expand=Trips&$select=Trips,UserName)\r\n```json\r\n{\r\n    \"@odata.context\": \"http://services.odata.org/V4/(S(wbn5c1lovxzbzubnfi3a1uz1))/TripPinServiceRW/$metadata#People(Trips,UserName)/$entity\",\r\n    \"@odata.id\": \"http://services.odata.org/V4/(S(wbn5c1lovxzbzubnfi3a1uz1))/TripPinServiceRW/People('keithpinckney')\",\r\n    \"@odata.etag\": \"W/\\\"08D5CD60F1CAA892\\\"\",\r\n    \"@odata.editLink\": \"http://services.odata.org/V4/(S(wbn5c1lovxzbzubnfi3a1uz1))/TripPinServiceRW/People('keithpinckney')\",\r\n    \"UserName\": \"keithpinckney\",\r\n    \"Trips@odata.context\": \"http://services.odata.org/V4/(S(wbn5c1lovxzbzubnfi3a1uz1))/TripPinServiceRW/$metadata#People('keithpinckney')/Trips\",\r\n    \"Trips\": []\r\n}\r\n```\r\nThe [ReponseReader](https://github.com/object/Simple.OData.Client/blob/ce33282a2066620f18184a9c40b8382bfd72cb04/src/Simple.OData.Client.Core/Adapter/ResponseReaderBase.cs#L116) currently [does not return empty collection properties](https://github.com/object/Simple.OData.Client/blob/ce33282a2066620f18184a9c40b8382bfd72cb04/src/Simple.OData.Client.Core/Adapter/ResponseNode.cs#L20), which results in them not beeing initialized and thus null. This may cause further unexpected NullReferenceExceptions on explicitly expanded properties."},"comment":{"url":"https://api.github.com/repos/object/Simple.OData.Client/issues/comments/396132861","html_url":"https://github.com/object/Simple.OData.Client/issues/487#issuecomment-396132861","issue_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/487","id":396132861,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjEzMjg2MQ==","user":{"login":"object","id":252126,"node_id":"MDQ6VXNlcjI1MjEyNg==","avatar_url":"https://avatars3.githubusercontent.com/u/252126?v=4","gravatar_id":"","url":"https://api.github.com/users/object","html_url":"https://github.com/object","followers_url":"https://api.github.com/users/object/followers","following_url":"https://api.github.com/users/object/following{/other_user}","gists_url":"https://api.github.com/users/object/gists{/gist_id}","starred_url":"https://api.github.com/users/object/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/object/subscriptions","organizations_url":"https://api.github.com/users/object/orgs","repos_url":"https://api.github.com/users/object/repos","events_url":"https://api.github.com/users/object/events{/privacy}","received_events_url":"https://api.github.com/users/object/received_events","type":"User","site_admin":false},"created_at":"2018-06-11T06:12:37Z","updated_at":"2018-06-11T06:12:37Z","author_association":"OWNER","body":"Merged your PR and released 5.2.2."}}
{"actor":{"display_login":"object"}}