{"action":"opened","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/9304","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/9304/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/9304/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/9304/events","html_url":"https://github.com/ant-design/ant-design/issues/9304","id":295381800,"number":9304,"title":"Tree throws error when `{null}` appear in multiple children","user":{"login":"dislido","id":25094788,"avatar_url":"https://avatars2.githubusercontent.com/u/25094788?v=4","gravatar_id":"","url":"https://api.github.com/users/dislido","html_url":"https://github.com/dislido","followers_url":"https://api.github.com/users/dislido/followers","following_url":"https://api.github.com/users/dislido/following{/other_user}","gists_url":"https://api.github.com/users/dislido/gists{/gist_id}","starred_url":"https://api.github.com/users/dislido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dislido/subscriptions","organizations_url":"https://api.github.com/users/dislido/orgs","repos_url":"https://api.github.com/users/dislido/repos","events_url":"https://api.github.com/users/dislido/events{/privacy}","received_events_url":"https://api.github.com/users/dislido/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-08T04:28:31Z","updated_at":"2018-02-08T04:28:31Z","closed_at":null,"author_association":"NONE","body":"### Version\r\n3.2.0\r\n\r\n### Environment\r\nwindows 10(x64), chrome 64\r\n\r\n### Reproduction link\r\n[https://codesandbox.io/s/kmvxwrv49o](https://codesandbox.io/s/kmvxwrv49o)\r\n\r\n### Steps to reproduce\r\n```jsx\r\n<Tree>\r\n  {null}\r\n  {null}\r\n<Tree>\r\n```\r\nor\r\n```jsx\r\n<Tree>\r\n  {null}\r\n  <TreeNode {...props} />\r\n<Tree>\r\n```\r\n\r\n### What is expected?\r\nTree can ignore these {null} children\r\n\r\n### What is actually happening?\r\nIt throws `Uncaught TypeError: Cannot read property 'key' of null`\r\n\r\n---\r\n```jsx\r\n<Tree>\r\n    {hasTreeNode1 && <TreeNode key=\"1\" title=\"node1\"></TreeNode>}\r\n    {hasTreeNode2 && <TreeNode key=\"2\" title=\"node2\"></TreeNode>}\r\n</Tree>\r\n```\r\n\r\nOr should I do it in another way?\r\n\r\n<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->"}}
{"actor":{"display_login":"dislido"}}