{"action":"opened","number":106,"pull_request":{"url":"https://api.github.com/repos/flosch/pongo2/pulls/106","id":49825462,"html_url":"https://github.com/flosch/pongo2/pull/106","diff_url":"https://github.com/flosch/pongo2/pull/106.diff","patch_url":"https://github.com/flosch/pongo2/pull/106.patch","issue_url":"https://api.github.com/repos/flosch/pongo2/issues/106","number":106,"state":"open","locked":false,"title":"Nil pointer reference panic avoided","user":{"login":"velanse","id":1241608,"avatar_url":"https://avatars.githubusercontent.com/u/1241608?v=3","gravatar_id":"","url":"https://api.github.com/users/velanse","html_url":"https://github.com/velanse","followers_url":"https://api.github.com/users/velanse/followers","following_url":"https://api.github.com/users/velanse/following{/other_user}","gists_url":"https://api.github.com/users/velanse/gists{/gist_id}","starred_url":"https://api.github.com/users/velanse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/velanse/subscriptions","organizations_url":"https://api.github.com/users/velanse/orgs","repos_url":"https://api.github.com/users/velanse/repos","events_url":"https://api.github.com/users/velanse/events{/privacy}","received_events_url":"https://api.github.com/users/velanse/received_events","type":"User","site_admin":false},"body":"Eliminating panic when sending a variable with a nil pointer reference in include tag and then trying to access param or function on this variable.\r\n\r\nExample\r\n```\r\n{% include \"includes.helper\" with my_var=some_undefined_var %}\r\n```\r\nin includes.helper:\r\n```\r\n{% if my_var.param %}I will panic since my_var is actually a nil pointer.{% endif %}\r\n```\r\n","created_at":"2015-11-05T13:47:30Z","updated_at":"2015-11-05T13:47:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/flosch/pongo2/pulls/106/commits","review_comments_url":"https://api.github.com/repos/flosch/pongo2/pulls/106/comments","review_comment_url":"https://api.github.com/repos/flosch/pongo2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flosch/pongo2/issues/106/comments","statuses_url":"https://api.github.com/repos/flosch/pongo2/statuses/7829d0e14cbaa3b830a5ccbf67c453a8483f0006","head":{"label":"velanse:nil-pointer-reference","ref":"nil-pointer-reference","sha":"7829d0e14cbaa3b830a5ccbf67c453a8483f0006","user":{"login":"velanse","id":1241608,"avatar_url":"https://avatars.githubusercontent.com/u/1241608?v=3","gravatar_id":"","url":"https://api.github.com/users/velanse","html_url":"https://github.com/velanse","followers_url":"https://api.github.com/users/velanse/followers","following_url":"https://api.github.com/users/velanse/following{/other_user}","gists_url":"https://api.github.com/users/velanse/gists{/gist_id}","starred_url":"https://api.github.com/users/velanse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/velanse/subscriptions","organizations_url":"https://api.github.com/users/velanse/orgs","repos_url":"https://api.github.com/users/velanse/repos","events_url":"https://api.github.com/users/velanse/events{/privacy}","received_events_url":"https://api.github.com/users/velanse/received_events","type":"User","site_admin":false},"repo":{"id":45612609,"name":"pongo2","full_name":"velanse/pongo2","owner":{"login":"velanse","id":1241608,"avatar_url":"https://avatars.githubusercontent.com/u/1241608?v=3","gravatar_id":"","url":"https://api.github.com/users/velanse","html_url":"https://github.com/velanse","followers_url":"https://api.github.com/users/velanse/followers","following_url":"https://api.github.com/users/velanse/following{/other_user}","gists_url":"https://api.github.com/users/velanse/gists{/gist_id}","starred_url":"https://api.github.com/users/velanse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/velanse/subscriptions","organizations_url":"https://api.github.com/users/velanse/orgs","repos_url":"https://api.github.com/users/velanse/repos","events_url":"https://api.github.com/users/velanse/events{/privacy}","received_events_url":"https://api.github.com/users/velanse/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/velanse/pongo2","description":"Django-syntax like template-engine for Go","fork":true,"url":"https://api.github.com/repos/velanse/pongo2","forks_url":"https://api.github.com/repos/velanse/pongo2/forks","keys_url":"https://api.github.com/repos/velanse/pongo2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/velanse/pongo2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/velanse/pongo2/teams","hooks_url":"https://api.github.com/repos/velanse/pongo2/hooks","issue_events_url":"https://api.github.com/repos/velanse/pongo2/issues/events{/number}","events_url":"https://api.github.com/repos/velanse/pongo2/events","assignees_url":"https://api.github.com/repos/velanse/pongo2/assignees{/user}","branches_url":"https://api.github.com/repos/velanse/pongo2/branches{/branch}","tags_url":"https://api.github.com/repos/velanse/pongo2/tags","blobs_url":"https://api.github.com/repos/velanse/pongo2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/velanse/pongo2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/velanse/pongo2/git/refs{/sha}","trees_url":"https://api.github.com/repos/velanse/pongo2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/velanse/pongo2/statuses/{sha}","languages_url":"https://api.github.com/repos/velanse/pongo2/languages","stargazers_url":"https://api.github.com/repos/velanse/pongo2/stargazers","contributors_url":"https://api.github.com/repos/velanse/pongo2/contributors","subscribers_url":"https://api.github.com/repos/velanse/pongo2/subscribers","subscription_url":"https://api.github.com/repos/velanse/pongo2/subscription","commits_url":"https://api.github.com/repos/velanse/pongo2/commits{/sha}","git_commits_url":"https://api.github.com/repos/velanse/pongo2/git/commits{/sha}","comments_url":"https://api.github.com/repos/velanse/pongo2/comments{/number}","issue_comment_url":"https://api.github.com/repos/velanse/pongo2/issues/comments{/number}","contents_url":"https://api.github.com/repos/velanse/pongo2/contents/{+path}","compare_url":"https://api.github.com/repos/velanse/pongo2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/velanse/pongo2/merges","archive_url":"https://api.github.com/repos/velanse/pongo2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/velanse/pongo2/downloads","issues_url":"https://api.github.com/repos/velanse/pongo2/issues{/number}","pulls_url":"https://api.github.com/repos/velanse/pongo2/pulls{/number}","milestones_url":"https://api.github.com/repos/velanse/pongo2/milestones{/number}","notifications_url":"https://api.github.com/repos/velanse/pongo2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/velanse/pongo2/labels{/name}","releases_url":"https://api.github.com/repos/velanse/pongo2/releases{/id}","created_at":"2015-11-05T13:23:21Z","updated_at":"2015-11-05T13:23:22Z","pushed_at":"2015-11-05T13:38:25Z","git_url":"git://github.com/velanse/pongo2.git","ssh_url":"git@github.com:velanse/pongo2.git","clone_url":"https://github.com/velanse/pongo2.git","svn_url":"https://github.com/velanse/pongo2","homepage":"https://www.florian-schlachter.de/?tag=pongo2","size":1767,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"flosch:master","ref":"master","sha":"4bac3860f8edbc19717122ddd9776aa03c53cb46","user":{"login":"flosch","id":19232,"avatar_url":"https://avatars.githubusercontent.com/u/19232?v=3","gravatar_id":"","url":"https://api.github.com/users/flosch","html_url":"https://github.com/flosch","followers_url":"https://api.github.com/users/flosch/followers","following_url":"https://api.github.com/users/flosch/following{/other_user}","gists_url":"https://api.github.com/users/flosch/gists{/gist_id}","starred_url":"https://api.github.com/users/flosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flosch/subscriptions","organizations_url":"https://api.github.com/users/flosch/orgs","repos_url":"https://api.github.com/users/flosch/repos","events_url":"https://api.github.com/users/flosch/events{/privacy}","received_events_url":"https://api.github.com/users/flosch/received_events","type":"User","site_admin":false},"repo":{"id":12311467,"name":"pongo2","full_name":"flosch/pongo2","owner":{"login":"flosch","id":19232,"avatar_url":"https://avatars.githubusercontent.com/u/19232?v=3","gravatar_id":"","url":"https://api.github.com/users/flosch","html_url":"https://github.com/flosch","followers_url":"https://api.github.com/users/flosch/followers","following_url":"https://api.github.com/users/flosch/following{/other_user}","gists_url":"https://api.github.com/users/flosch/gists{/gist_id}","starred_url":"https://api.github.com/users/flosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flosch/subscriptions","organizations_url":"https://api.github.com/users/flosch/orgs","repos_url":"https://api.github.com/users/flosch/repos","events_url":"https://api.github.com/users/flosch/events{/privacy}","received_events_url":"https://api.github.com/users/flosch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/flosch/pongo2","description":"Django-syntax like template-engine for Go","fork":false,"url":"https://api.github.com/repos/flosch/pongo2","forks_url":"https://api.github.com/repos/flosch/pongo2/forks","keys_url":"https://api.github.com/repos/flosch/pongo2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flosch/pongo2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flosch/pongo2/teams","hooks_url":"https://api.github.com/repos/flosch/pongo2/hooks","issue_events_url":"https://api.github.com/repos/flosch/pongo2/issues/events{/number}","events_url":"https://api.github.com/repos/flosch/pongo2/events","assignees_url":"https://api.github.com/repos/flosch/pongo2/assignees{/user}","branches_url":"https://api.github.com/repos/flosch/pongo2/branches{/branch}","tags_url":"https://api.github.com/repos/flosch/pongo2/tags","blobs_url":"https://api.github.com/repos/flosch/pongo2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flosch/pongo2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flosch/pongo2/git/refs{/sha}","trees_url":"https://api.github.com/repos/flosch/pongo2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flosch/pongo2/statuses/{sha}","languages_url":"https://api.github.com/repos/flosch/pongo2/languages","stargazers_url":"https://api.github.com/repos/flosch/pongo2/stargazers","contributors_url":"https://api.github.com/repos/flosch/pongo2/contributors","subscribers_url":"https://api.github.com/repos/flosch/pongo2/subscribers","subscription_url":"https://api.github.com/repos/flosch/pongo2/subscription","commits_url":"https://api.github.com/repos/flosch/pongo2/commits{/sha}","git_commits_url":"https://api.github.com/repos/flosch/pongo2/git/commits{/sha}","comments_url":"https://api.github.com/repos/flosch/pongo2/comments{/number}","issue_comment_url":"https://api.github.com/repos/flosch/pongo2/issues/comments{/number}","contents_url":"https://api.github.com/repos/flosch/pongo2/contents/{+path}","compare_url":"https://api.github.com/repos/flosch/pongo2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flosch/pongo2/merges","archive_url":"https://api.github.com/repos/flosch/pongo2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flosch/pongo2/downloads","issues_url":"https://api.github.com/repos/flosch/pongo2/issues{/number}","pulls_url":"https://api.github.com/repos/flosch/pongo2/pulls{/number}","milestones_url":"https://api.github.com/repos/flosch/pongo2/milestones{/number}","notifications_url":"https://api.github.com/repos/flosch/pongo2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flosch/pongo2/labels{/name}","releases_url":"https://api.github.com/repos/flosch/pongo2/releases{/id}","created_at":"2013-08-23T01:00:08Z","updated_at":"2015-11-05T03:19:55Z","pushed_at":"2015-11-05T13:47:30Z","git_url":"git://github.com/flosch/pongo2.git","ssh_url":"git@github.com:flosch/pongo2.git","clone_url":"https://github.com/flosch/pongo2.git","svn_url":"https://github.com/flosch/pongo2","homepage":"https://www.florian-schlachter.de/?tag=pongo2","size":1767,"stargazers_count":598,"watchers_count":598,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":51,"mirror_url":null,"open_issues_count":22,"forks":51,"open_issues":22,"watchers":598,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flosch/pongo2/pulls/106"},"html":{"href":"https://github.com/flosch/pongo2/pull/106"},"issue":{"href":"https://api.github.com/repos/flosch/pongo2/issues/106"},"comments":{"href":"https://api.github.com/repos/flosch/pongo2/issues/106/comments"},"review_comments":{"href":"https://api.github.com/repos/flosch/pongo2/pulls/106/comments"},"review_comment":{"href":"https://api.github.com/repos/flosch/pongo2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flosch/pongo2/pulls/106/commits"},"statuses":{"href":"https://api.github.com/repos/flosch/pongo2/statuses/7829d0e14cbaa3b830a5ccbf67c453a8483f0006"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":0,"changed_files":1}}