{"action":"created","comment":{"url":"https://api.github.com/repos/Gooru/Gooru-Core-API/pulls/comments/27803450","id":27803450,"diff_hunk":"@@ -1258,6 +1258,9 @@ public Resource updateResourceByGooruContentId(final String gooruContentId, fina\n \tpublic void updateResourceSourceAttribution(final Integer resourceSourceId, final String domainName, final String attribution, final Integer frameBreaker, final User user, final Boolean isBlacklisted) throws Exception {\n \n \t\tfinal ResourceSource resourceSource = resourceRepository.findResourceByresourceSourceId(resourceSourceId);\n+\t\tif(resourceSource == null){\n+\t\t\tthrow new NotFoundException(generateErrorMessage(GL0056, RESOURCE), GL0056);","path":"api/src/main/java/org/ednovo/gooru/domain/service/resource/ResourceServiceImpl.java","position":5,"original_position":5,"commit_id":"a215be61ee401635a4910c5a22ffd4c511b246ad","original_commit_id":"a215be61ee401635a4910c5a22ffd4c511b246ad","user":{"login":"sheebans","id":4478382,"avatar_url":"https://avatars.githubusercontent.com/u/4478382?v=3","gravatar_id":"","url":"https://api.github.com/users/sheebans","html_url":"https://github.com/sheebans","followers_url":"https://api.github.com/users/sheebans/followers","following_url":"https://api.github.com/users/sheebans/following{/other_user}","gists_url":"https://api.github.com/users/sheebans/gists{/gist_id}","starred_url":"https://api.github.com/users/sheebans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheebans/subscriptions","organizations_url":"https://api.github.com/users/sheebans/orgs","repos_url":"https://api.github.com/users/sheebans/repos","events_url":"https://api.github.com/users/sheebans/events{/privacy}","received_events_url":"https://api.github.com/users/sheebans/received_events","type":"User","site_admin":false},"body":"@viji-m  use rejectifnull method for validation,  when object is null","created_at":"2015-04-06T15:20:53Z","updated_at":"2015-04-06T15:20:53Z","html_url":"https://github.com/Gooru/Gooru-Core-API/pull/1041#discussion_r27803450","pull_request_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/pulls/1041","_links":{"self":{"href":"https://api.github.com/repos/Gooru/Gooru-Core-API/pulls/comments/27803450"},"html":{"href":"https://github.com/Gooru/Gooru-Core-API/pull/1041#discussion_r27803450"},"pull_request":{"href":"https://api.github.com/repos/Gooru/Gooru-Core-API/pulls/1041"}}},"pull_request":{"url":"https://api.github.com/repos/Gooru/Gooru-Core-API/pulls/1041","id":32682715,"html_url":"https://github.com/Gooru/Gooru-Core-API/pull/1041","diff_url":"https://github.com/Gooru/Gooru-Core-API/pull/1041.diff","patch_url":"https://github.com/Gooru/Gooru-Core-API/pull/1041.patch","issue_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/issues/1041","number":1041,"state":"open","locked":false,"title":"fixed 500 issue while the resourceSourceId not found","user":{"login":"viji-m","id":9458379,"avatar_url":"https://avatars.githubusercontent.com/u/9458379?v=3","gravatar_id":"","url":"https://api.github.com/users/viji-m","html_url":"https://github.com/viji-m","followers_url":"https://api.github.com/users/viji-m/followers","following_url":"https://api.github.com/users/viji-m/following{/other_user}","gists_url":"https://api.github.com/users/viji-m/gists{/gist_id}","starred_url":"https://api.github.com/users/viji-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viji-m/subscriptions","organizations_url":"https://api.github.com/users/viji-m/orgs","repos_url":"https://api.github.com/users/viji-m/repos","events_url":"https://api.github.com/users/viji-m/events{/privacy}","received_events_url":"https://api.github.com/users/viji-m/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-06T14:44:44Z","updated_at":"2015-04-06T15:20:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5cfae21913594a8c53b12e43ca81674cd8645353","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/pulls/1041/commits","review_comments_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/pulls/1041/comments","review_comment_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/issues/1041/comments","statuses_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/statuses/a215be61ee401635a4910c5a22ffd4c511b246ad","head":{"label":"viji-m:master","ref":"master","sha":"a215be61ee401635a4910c5a22ffd4c511b246ad","user":{"login":"viji-m","id":9458379,"avatar_url":"https://avatars.githubusercontent.com/u/9458379?v=3","gravatar_id":"","url":"https://api.github.com/users/viji-m","html_url":"https://github.com/viji-m","followers_url":"https://api.github.com/users/viji-m/followers","following_url":"https://api.github.com/users/viji-m/following{/other_user}","gists_url":"https://api.github.com/users/viji-m/gists{/gist_id}","starred_url":"https://api.github.com/users/viji-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viji-m/subscriptions","organizations_url":"https://api.github.com/users/viji-m/orgs","repos_url":"https://api.github.com/users/viji-m/repos","events_url":"https://api.github.com/users/viji-m/events{/privacy}","received_events_url":"https://api.github.com/users/viji-m/received_events","type":"User","site_admin":false},"repo":{"id":25957939,"name":"Gooru-Core-API","full_name":"viji-m/Gooru-Core-API","owner":{"login":"viji-m","id":9458379,"avatar_url":"https://avatars.githubusercontent.com/u/9458379?v=3","gravatar_id":"","url":"https://api.github.com/users/viji-m","html_url":"https://github.com/viji-m","followers_url":"https://api.github.com/users/viji-m/followers","following_url":"https://api.github.com/users/viji-m/following{/other_user}","gists_url":"https://api.github.com/users/viji-m/gists{/gist_id}","starred_url":"https://api.github.com/users/viji-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viji-m/subscriptions","organizations_url":"https://api.github.com/users/viji-m/orgs","repos_url":"https://api.github.com/users/viji-m/repos","events_url":"https://api.github.com/users/viji-m/events{/privacy}","received_events_url":"https://api.github.com/users/viji-m/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/viji-m/Gooru-Core-API","description":"","fork":true,"url":"https://api.github.com/repos/viji-m/Gooru-Core-API","forks_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/forks","keys_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/teams","hooks_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/hooks","issue_events_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/issues/events{/number}","events_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/events","assignees_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/assignees{/user}","branches_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/branches{/branch}","tags_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/tags","blobs_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/statuses/{sha}","languages_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/languages","stargazers_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/stargazers","contributors_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/contributors","subscribers_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/subscribers","subscription_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/subscription","commits_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/issues/comments{/number}","contents_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/contents/{+path}","compare_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/merges","archive_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/downloads","issues_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/issues{/number}","pulls_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/pulls{/number}","milestones_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/milestones{/number}","notifications_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/labels{/name}","releases_url":"https://api.github.com/repos/viji-m/Gooru-Core-API/releases{/id}","created_at":"2014-10-30T06:30:32Z","updated_at":"2015-04-06T15:18:54Z","pushed_at":"2015-04-06T15:18:52Z","git_url":"git://github.com/viji-m/Gooru-Core-API.git","ssh_url":"git@github.com:viji-m/Gooru-Core-API.git","clone_url":"https://github.com/viji-m/Gooru-Core-API.git","svn_url":"https://github.com/viji-m/Gooru-Core-API","homepage":"","size":13863,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"Gooru:master","ref":"master","sha":"2aa7f8e0e5abafd0e2f3c081b654298644b8804e","user":{"login":"Gooru","id":3195139,"avatar_url":"https://avatars.githubusercontent.com/u/3195139?v=3","gravatar_id":"","url":"https://api.github.com/users/Gooru","html_url":"https://github.com/Gooru","followers_url":"https://api.github.com/users/Gooru/followers","following_url":"https://api.github.com/users/Gooru/following{/other_user}","gists_url":"https://api.github.com/users/Gooru/gists{/gist_id}","starred_url":"https://api.github.com/users/Gooru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gooru/subscriptions","organizations_url":"https://api.github.com/users/Gooru/orgs","repos_url":"https://api.github.com/users/Gooru/repos","events_url":"https://api.github.com/users/Gooru/events{/privacy}","received_events_url":"https://api.github.com/users/Gooru/received_events","type":"Organization","site_admin":false},"repo":{"id":16409491,"name":"Gooru-Core-API","full_name":"Gooru/Gooru-Core-API","owner":{"login":"Gooru","id":3195139,"avatar_url":"https://avatars.githubusercontent.com/u/3195139?v=3","gravatar_id":"","url":"https://api.github.com/users/Gooru","html_url":"https://github.com/Gooru","followers_url":"https://api.github.com/users/Gooru/followers","following_url":"https://api.github.com/users/Gooru/following{/other_user}","gists_url":"https://api.github.com/users/Gooru/gists{/gist_id}","starred_url":"https://api.github.com/users/Gooru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gooru/subscriptions","organizations_url":"https://api.github.com/users/Gooru/orgs","repos_url":"https://api.github.com/users/Gooru/repos","events_url":"https://api.github.com/users/Gooru/events{/privacy}","received_events_url":"https://api.github.com/users/Gooru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Gooru/Gooru-Core-API","description":"","fork":false,"url":"https://api.github.com/repos/Gooru/Gooru-Core-API","forks_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/forks","keys_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/teams","hooks_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/hooks","issue_events_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/issues/events{/number}","events_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/events","assignees_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/assignees{/user}","branches_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/branches{/branch}","tags_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/tags","blobs_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/statuses/{sha}","languages_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/languages","stargazers_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/stargazers","contributors_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/contributors","subscribers_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/subscribers","subscription_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/subscription","commits_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/issues/comments{/number}","contents_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/contents/{+path}","compare_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/merges","archive_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/downloads","issues_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/issues{/number}","pulls_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/pulls{/number}","milestones_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/milestones{/number}","notifications_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/labels{/name}","releases_url":"https://api.github.com/repos/Gooru/Gooru-Core-API/releases{/id}","created_at":"2014-01-31T14:03:14Z","updated_at":"2015-04-06T09:40:51Z","pushed_at":"2015-04-06T15:18:52Z","git_url":"git://github.com/Gooru/Gooru-Core-API.git","ssh_url":"git@github.com:Gooru/Gooru-Core-API.git","clone_url":"https://github.com/Gooru/Gooru-Core-API.git","svn_url":"https://github.com/Gooru/Gooru-Core-API","homepage":"","size":42460,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":6,"forks":29,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Gooru/Gooru-Core-API/pulls/1041"},"html":{"href":"https://github.com/Gooru/Gooru-Core-API/pull/1041"},"issue":{"href":"https://api.github.com/repos/Gooru/Gooru-Core-API/issues/1041"},"comments":{"href":"https://api.github.com/repos/Gooru/Gooru-Core-API/issues/1041/comments"},"review_comments":{"href":"https://api.github.com/repos/Gooru/Gooru-Core-API/pulls/1041/comments"},"review_comment":{"href":"https://api.github.com/repos/Gooru/Gooru-Core-API/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Gooru/Gooru-Core-API/pulls/1041/commits"},"statuses":{"href":"https://api.github.com/repos/Gooru/Gooru-Core-API/statuses/a215be61ee401635a4910c5a22ffd4c511b246ad"}}}}