{"action":"closed","issue":{"url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/534","repository_url":"https://api.github.com/repos/jagi/meteor-astronomy","labels_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/534/labels{/name}","comments_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/534/comments","events_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/534/events","html_url":"https://github.com/jagi/meteor-astronomy/issues/534","id":188692800,"number":534,"title":"[2.3] Probable bug while setting default and optional both","user":{"login":"s7dhansh","id":706996,"avatar_url":"https://avatars.githubusercontent.com/u/706996?v=3","gravatar_id":"","url":"https://api.github.com/users/s7dhansh","html_url":"https://github.com/s7dhansh","followers_url":"https://api.github.com/users/s7dhansh/followers","following_url":"https://api.github.com/users/s7dhansh/following{/other_user}","gists_url":"https://api.github.com/users/s7dhansh/gists{/gist_id}","starred_url":"https://api.github.com/users/s7dhansh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s7dhansh/subscriptions","organizations_url":"https://api.github.com/users/s7dhansh/orgs","repos_url":"https://api.github.com/users/s7dhansh/repos","events_url":"https://api.github.com/users/s7dhansh/events{/privacy}","received_events_url":"https://api.github.com/users/s7dhansh/received_events","type":"User","site_admin":false},"labels":[{"id":175193723,"url":"https://api.github.com/repos/jagi/meteor-astronomy/labels/bug","name":"bug","color":"c80000","default":true},{"id":365309465,"url":"https://api.github.com/repos/jagi/meteor-astronomy/labels/v2","name":"v2","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-11-11T06:18:04Z","updated_at":"2016-11-13T21:00:14Z","closed_at":"2016-11-13T21:00:14Z","body":"```\r\n\t\tlistings: {\r\n\t\t\ttype: ListingDetails,\r\n\t\t\tdefault: null,\r\n\t\t\toptional: true,\r\n\t\t},\r\n```\r\nThis kind of declaration used to work (till 2.2.4). But in 2.3 it is causing a minimongo error on save:\r\n```\r\nMinimongoError: cannot use the part 'data' to traverse null [409]\r\n```\r\n\r\nThe ListingDetails class contains an optional `data: [Object]` field. Since doc.listings is null, it is failing while finding `doc.listings.data` which ideally it should not.\r\n\r\n~~Not sure if this is a Minimongo error or Astronomy.~~\r\nThe mnimongo was not updated between meteor 1.4.2 and 1.4.2.1, so I guess some new code in Astronomy caused this.\r\n@jagi any ideas?"}}
{"actor":{"display_login":"jagi"}}