{"action":"closed","number":29,"pull_request":{"url":"https://api.github.com/repos/pasaran/nommon/pulls/29","id":49801755,"html_url":"https://github.com/pasaran/nommon/pull/29","diff_url":"https://github.com/pasaran/nommon/pull/29.diff","patch_url":"https://github.com/pasaran/nommon/pull/29.patch","issue_url":"https://api.github.com/repos/pasaran/nommon/issues/29","number":29,"state":"closed","locked":false,"title":"Fix JS error while walk through null value in array","user":{"login":"doochik","id":31961,"avatar_url":"https://avatars.githubusercontent.com/u/31961?v=3","gravatar_id":"","url":"https://api.github.com/users/doochik","html_url":"https://github.com/doochik","followers_url":"https://api.github.com/users/doochik/followers","following_url":"https://api.github.com/users/doochik/following{/other_user}","gists_url":"https://api.github.com/users/doochik/gists{/gist_id}","starred_url":"https://api.github.com/users/doochik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doochik/subscriptions","organizations_url":"https://api.github.com/users/doochik/orgs","repos_url":"https://api.github.com/users/doochik/repos","events_url":"https://api.github.com/users/doochik/events{/privacy}","received_events_url":"https://api.github.com/users/doochik/received_events","type":"User","site_admin":false},"body":"Case:\r\n```\r\nvar data = {\r\n   foo: [\r\n     bar: null\r\n   ]\r\n}\r\n\r\nno.jpath('.foo.bar.id', data);\r\n```\r\n\r\nError:\r\n```\r\nTypeError: Cannot read property 'id' of null\r\n      at array_step (lib/no.jpath.js:993:29)\r\n      at e0 (eval at compile (lib/no.jpath.js:1136:20), <anonymous>:4:309)\r\n      at Object.no.jpath (lib/no.jpath.js:31:34)\r\n```\r\n\r\nI'm not sure about return value `[]`. Validate it please","created_at":"2015-11-05T09:49:09Z","updated_at":"2015-11-05T12:03:07Z","closed_at":"2015-11-05T12:03:07Z","merged_at":"2015-11-05T12:03:07Z","merge_commit_sha":"7c5acc722b362ab0a79283c89d221ce988b1e747","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pasaran/nommon/pulls/29/commits","review_comments_url":"https://api.github.com/repos/pasaran/nommon/pulls/29/comments","review_comment_url":"https://api.github.com/repos/pasaran/nommon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pasaran/nommon/issues/29/comments","statuses_url":"https://api.github.com/repos/pasaran/nommon/statuses/8e10ea1a429c9e3de047faafced4fe76f4064f95","head":{"label":"doochik:array-null-js-error","ref":"array-null-js-error","sha":"8e10ea1a429c9e3de047faafced4fe76f4064f95","user":{"login":"doochik","id":31961,"avatar_url":"https://avatars.githubusercontent.com/u/31961?v=3","gravatar_id":"","url":"https://api.github.com/users/doochik","html_url":"https://github.com/doochik","followers_url":"https://api.github.com/users/doochik/followers","following_url":"https://api.github.com/users/doochik/following{/other_user}","gists_url":"https://api.github.com/users/doochik/gists{/gist_id}","starred_url":"https://api.github.com/users/doochik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doochik/subscriptions","organizations_url":"https://api.github.com/users/doochik/orgs","repos_url":"https://api.github.com/users/doochik/repos","events_url":"https://api.github.com/users/doochik/events{/privacy}","received_events_url":"https://api.github.com/users/doochik/received_events","type":"User","site_admin":false},"repo":{"id":6489227,"name":"nommon","full_name":"doochik/nommon","owner":{"login":"doochik","id":31961,"avatar_url":"https://avatars.githubusercontent.com/u/31961?v=3","gravatar_id":"","url":"https://api.github.com/users/doochik","html_url":"https://github.com/doochik","followers_url":"https://api.github.com/users/doochik/followers","following_url":"https://api.github.com/users/doochik/following{/other_user}","gists_url":"https://api.github.com/users/doochik/gists{/gist_id}","starred_url":"https://api.github.com/users/doochik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doochik/subscriptions","organizations_url":"https://api.github.com/users/doochik/orgs","repos_url":"https://api.github.com/users/doochik/repos","events_url":"https://api.github.com/users/doochik/events{/privacy}","received_events_url":"https://api.github.com/users/doochik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/doochik/nommon","description":"nop's common","fork":true,"url":"https://api.github.com/repos/doochik/nommon","forks_url":"https://api.github.com/repos/doochik/nommon/forks","keys_url":"https://api.github.com/repos/doochik/nommon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/doochik/nommon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/doochik/nommon/teams","hooks_url":"https://api.github.com/repos/doochik/nommon/hooks","issue_events_url":"https://api.github.com/repos/doochik/nommon/issues/events{/number}","events_url":"https://api.github.com/repos/doochik/nommon/events","assignees_url":"https://api.github.com/repos/doochik/nommon/assignees{/user}","branches_url":"https://api.github.com/repos/doochik/nommon/branches{/branch}","tags_url":"https://api.github.com/repos/doochik/nommon/tags","blobs_url":"https://api.github.com/repos/doochik/nommon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/doochik/nommon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/doochik/nommon/git/refs{/sha}","trees_url":"https://api.github.com/repos/doochik/nommon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/doochik/nommon/statuses/{sha}","languages_url":"https://api.github.com/repos/doochik/nommon/languages","stargazers_url":"https://api.github.com/repos/doochik/nommon/stargazers","contributors_url":"https://api.github.com/repos/doochik/nommon/contributors","subscribers_url":"https://api.github.com/repos/doochik/nommon/subscribers","subscription_url":"https://api.github.com/repos/doochik/nommon/subscription","commits_url":"https://api.github.com/repos/doochik/nommon/commits{/sha}","git_commits_url":"https://api.github.com/repos/doochik/nommon/git/commits{/sha}","comments_url":"https://api.github.com/repos/doochik/nommon/comments{/number}","issue_comment_url":"https://api.github.com/repos/doochik/nommon/issues/comments{/number}","contents_url":"https://api.github.com/repos/doochik/nommon/contents/{+path}","compare_url":"https://api.github.com/repos/doochik/nommon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/doochik/nommon/merges","archive_url":"https://api.github.com/repos/doochik/nommon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/doochik/nommon/downloads","issues_url":"https://api.github.com/repos/doochik/nommon/issues{/number}","pulls_url":"https://api.github.com/repos/doochik/nommon/pulls{/number}","milestones_url":"https://api.github.com/repos/doochik/nommon/milestones{/number}","notifications_url":"https://api.github.com/repos/doochik/nommon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/doochik/nommon/labels{/name}","releases_url":"https://api.github.com/repos/doochik/nommon/releases{/id}","created_at":"2012-11-01T12:25:45Z","updated_at":"2015-11-05T09:45:58Z","pushed_at":"2015-11-05T09:46:58Z","git_url":"git://github.com/doochik/nommon.git","ssh_url":"git@github.com:doochik/nommon.git","clone_url":"https://github.com/doochik/nommon.git","svn_url":"https://github.com/doochik/nommon","homepage":"","size":353,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pasaran:master","ref":"master","sha":"3158e525f60f7300555b7a99f90aadebd2ca6572","user":{"login":"pasaran","id":43973,"avatar_url":"https://avatars.githubusercontent.com/u/43973?v=3","gravatar_id":"","url":"https://api.github.com/users/pasaran","html_url":"https://github.com/pasaran","followers_url":"https://api.github.com/users/pasaran/followers","following_url":"https://api.github.com/users/pasaran/following{/other_user}","gists_url":"https://api.github.com/users/pasaran/gists{/gist_id}","starred_url":"https://api.github.com/users/pasaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pasaran/subscriptions","organizations_url":"https://api.github.com/users/pasaran/orgs","repos_url":"https://api.github.com/users/pasaran/repos","events_url":"https://api.github.com/users/pasaran/events{/privacy}","received_events_url":"https://api.github.com/users/pasaran/received_events","type":"User","site_admin":false},"repo":{"id":5540861,"name":"nommon","full_name":"pasaran/nommon","owner":{"login":"pasaran","id":43973,"avatar_url":"https://avatars.githubusercontent.com/u/43973?v=3","gravatar_id":"","url":"https://api.github.com/users/pasaran","html_url":"https://github.com/pasaran","followers_url":"https://api.github.com/users/pasaran/followers","following_url":"https://api.github.com/users/pasaran/following{/other_user}","gists_url":"https://api.github.com/users/pasaran/gists{/gist_id}","starred_url":"https://api.github.com/users/pasaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pasaran/subscriptions","organizations_url":"https://api.github.com/users/pasaran/orgs","repos_url":"https://api.github.com/users/pasaran/repos","events_url":"https://api.github.com/users/pasaran/events{/privacy}","received_events_url":"https://api.github.com/users/pasaran/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pasaran/nommon","description":"nop's common","fork":false,"url":"https://api.github.com/repos/pasaran/nommon","forks_url":"https://api.github.com/repos/pasaran/nommon/forks","keys_url":"https://api.github.com/repos/pasaran/nommon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pasaran/nommon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pasaran/nommon/teams","hooks_url":"https://api.github.com/repos/pasaran/nommon/hooks","issue_events_url":"https://api.github.com/repos/pasaran/nommon/issues/events{/number}","events_url":"https://api.github.com/repos/pasaran/nommon/events","assignees_url":"https://api.github.com/repos/pasaran/nommon/assignees{/user}","branches_url":"https://api.github.com/repos/pasaran/nommon/branches{/branch}","tags_url":"https://api.github.com/repos/pasaran/nommon/tags","blobs_url":"https://api.github.com/repos/pasaran/nommon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pasaran/nommon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pasaran/nommon/git/refs{/sha}","trees_url":"https://api.github.com/repos/pasaran/nommon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pasaran/nommon/statuses/{sha}","languages_url":"https://api.github.com/repos/pasaran/nommon/languages","stargazers_url":"https://api.github.com/repos/pasaran/nommon/stargazers","contributors_url":"https://api.github.com/repos/pasaran/nommon/contributors","subscribers_url":"https://api.github.com/repos/pasaran/nommon/subscribers","subscription_url":"https://api.github.com/repos/pasaran/nommon/subscription","commits_url":"https://api.github.com/repos/pasaran/nommon/commits{/sha}","git_commits_url":"https://api.github.com/repos/pasaran/nommon/git/commits{/sha}","comments_url":"https://api.github.com/repos/pasaran/nommon/comments{/number}","issue_comment_url":"https://api.github.com/repos/pasaran/nommon/issues/comments{/number}","contents_url":"https://api.github.com/repos/pasaran/nommon/contents/{+path}","compare_url":"https://api.github.com/repos/pasaran/nommon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pasaran/nommon/merges","archive_url":"https://api.github.com/repos/pasaran/nommon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pasaran/nommon/downloads","issues_url":"https://api.github.com/repos/pasaran/nommon/issues{/number}","pulls_url":"https://api.github.com/repos/pasaran/nommon/pulls{/number}","milestones_url":"https://api.github.com/repos/pasaran/nommon/milestones{/number}","notifications_url":"https://api.github.com/repos/pasaran/nommon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pasaran/nommon/labels{/name}","releases_url":"https://api.github.com/repos/pasaran/nommon/releases{/id}","created_at":"2012-08-24T13:48:38Z","updated_at":"2015-05-28T14:49:53Z","pushed_at":"2015-11-05T12:03:07Z","git_url":"git://github.com/pasaran/nommon.git","ssh_url":"git@github.com:pasaran/nommon.git","clone_url":"https://github.com/pasaran/nommon.git","svn_url":"https://github.com/pasaran/nommon","homepage":"","size":827,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":11,"forks":5,"open_issues":11,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pasaran/nommon/pulls/29"},"html":{"href":"https://github.com/pasaran/nommon/pull/29"},"issue":{"href":"https://api.github.com/repos/pasaran/nommon/issues/29"},"comments":{"href":"https://api.github.com/repos/pasaran/nommon/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/pasaran/nommon/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/pasaran/nommon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pasaran/nommon/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/pasaran/nommon/statuses/8e10ea1a429c9e3de047faafced4fe76f4064f95"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"pasaran","id":43973,"avatar_url":"https://avatars.githubusercontent.com/u/43973?v=3","gravatar_id":"","url":"https://api.github.com/users/pasaran","html_url":"https://github.com/pasaran","followers_url":"https://api.github.com/users/pasaran/followers","following_url":"https://api.github.com/users/pasaran/following{/other_user}","gists_url":"https://api.github.com/users/pasaran/gists{/gist_id}","starred_url":"https://api.github.com/users/pasaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pasaran/subscriptions","organizations_url":"https://api.github.com/users/pasaran/orgs","repos_url":"https://api.github.com/users/pasaran/repos","events_url":"https://api.github.com/users/pasaran/events{/privacy}","received_events_url":"https://api.github.com/users/pasaran/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":13,"deletions":2,"changed_files":2}}