{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/product-mdm/pulls/comments/30318683","id":30318683,"diff_hunk":"@@ -126,14 +130,20 @@ public static HttpRequestBase buildHeaders(HttpRequestBase httpRequestBase,\n \t}\n \n \tpublic static Map<String, String> postData(EndPointInfo endPointInfo,\n-\t                                           Map<String, String> headers)\n+\t\t\t\t\t\t\t\t\t\t\t   Map<String, String> headers)\n \t\t\tthrows IDPTokenManagerException {\n \n \t\tHTTP_METHODS httpMethod = endPointInfo.getHttpMethod();\n \t\tString url = endPointInfo.getEndPoint();\n-\t\tJSONObject params = endPointInfo.getRequestParams();\n+\n+\t\tString params = \"\";\n+\n+\t\tif(endPointInfo.getRequestParams() != null){","path":"modules/mobile-agents/android/client/plugins/IDPProxy/src/org/wso2/mdm/agent/proxy/utils/ServerUtilities.java","position":65,"original_position":65,"commit_id":"1f211c2e86590b03a6ece4bce7e08810da3ee913","original_commit_id":"1f211c2e86590b03a6ece4bce7e08810da3ee913","user":{"login":"prabathabey","id":6664125,"avatar_url":"https://avatars.githubusercontent.com/u/6664125?v=3","gravatar_id":"","url":"https://api.github.com/users/prabathabey","html_url":"https://github.com/prabathabey","followers_url":"https://api.github.com/users/prabathabey/followers","following_url":"https://api.github.com/users/prabathabey/following{/other_user}","gists_url":"https://api.github.com/users/prabathabey/gists{/gist_id}","starred_url":"https://api.github.com/users/prabathabey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabathabey/subscriptions","organizations_url":"https://api.github.com/users/prabathabey/orgs","repos_url":"https://api.github.com/users/prabathabey/repos","events_url":"https://api.github.com/users/prabathabey/events{/privacy}","received_events_url":"https://api.github.com/users/prabathabey/received_events","type":"User","site_admin":false},"body":"Do we validate if the endPointInfo instance is null or not anywhere in the upstream code? If not, you might need to add a null check too as part of the condition configured within the if statement.","created_at":"2015-05-14T13:08:49Z","updated_at":"2015-05-14T13:08:49Z","html_url":"https://github.com/wso2/product-mdm/pull/52#discussion_r30318683","pull_request_url":"https://api.github.com/repos/wso2/product-mdm/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/wso2/product-mdm/pulls/comments/30318683"},"html":{"href":"https://github.com/wso2/product-mdm/pull/52#discussion_r30318683"},"pull_request":{"href":"https://api.github.com/repos/wso2/product-mdm/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/product-mdm/pulls/52","id":35419238,"html_url":"https://github.com/wso2/product-mdm/pull/52","diff_url":"https://github.com/wso2/product-mdm/pull/52.diff","patch_url":"https://github.com/wso2/product-mdm/pull/52.patch","issue_url":"https://api.github.com/repos/wso2/product-mdm/issues/52","number":52,"state":"open","locked":false,"title":"Refactored Android application to compatible with new backend","user":{"login":"milanperera","id":11870191,"avatar_url":"https://avatars.githubusercontent.com/u/11870191?v=3","gravatar_id":"","url":"https://api.github.com/users/milanperera","html_url":"https://github.com/milanperera","followers_url":"https://api.github.com/users/milanperera/followers","following_url":"https://api.github.com/users/milanperera/following{/other_user}","gists_url":"https://api.github.com/users/milanperera/gists{/gist_id}","starred_url":"https://api.github.com/users/milanperera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milanperera/subscriptions","organizations_url":"https://api.github.com/users/milanperera/orgs","repos_url":"https://api.github.com/users/milanperera/repos","events_url":"https://api.github.com/users/milanperera/events{/privacy}","received_events_url":"https://api.github.com/users/milanperera/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-14T13:02:12Z","updated_at":"2015-05-14T13:08:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b1bd403eb547293a71802e3f8059fa90187d22b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2/product-mdm/pulls/52/commits","review_comments_url":"https://api.github.com/repos/wso2/product-mdm/pulls/52/comments","review_comment_url":"https://api.github.com/repos/wso2/product-mdm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/product-mdm/issues/52/comments","statuses_url":"https://api.github.com/repos/wso2/product-mdm/statuses/1f211c2e86590b03a6ece4bce7e08810da3ee913","head":{"label":"milanperera:master","ref":"master","sha":"1f211c2e86590b03a6ece4bce7e08810da3ee913","user":{"login":"milanperera","id":11870191,"avatar_url":"https://avatars.githubusercontent.com/u/11870191?v=3","gravatar_id":"","url":"https://api.github.com/users/milanperera","html_url":"https://github.com/milanperera","followers_url":"https://api.github.com/users/milanperera/followers","following_url":"https://api.github.com/users/milanperera/following{/other_user}","gists_url":"https://api.github.com/users/milanperera/gists{/gist_id}","starred_url":"https://api.github.com/users/milanperera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milanperera/subscriptions","organizations_url":"https://api.github.com/users/milanperera/orgs","repos_url":"https://api.github.com/users/milanperera/repos","events_url":"https://api.github.com/users/milanperera/events{/privacy}","received_events_url":"https://api.github.com/users/milanperera/received_events","type":"User","site_admin":false},"repo":{"id":34047589,"name":"product-mdm","full_name":"milanperera/product-mdm","owner":{"login":"milanperera","id":11870191,"avatar_url":"https://avatars.githubusercontent.com/u/11870191?v=3","gravatar_id":"","url":"https://api.github.com/users/milanperera","html_url":"https://github.com/milanperera","followers_url":"https://api.github.com/users/milanperera/followers","following_url":"https://api.github.com/users/milanperera/following{/other_user}","gists_url":"https://api.github.com/users/milanperera/gists{/gist_id}","starred_url":"https://api.github.com/users/milanperera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milanperera/subscriptions","organizations_url":"https://api.github.com/users/milanperera/orgs","repos_url":"https://api.github.com/users/milanperera/repos","events_url":"https://api.github.com/users/milanperera/events{/privacy}","received_events_url":"https://api.github.com/users/milanperera/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/milanperera/product-mdm","description":"","fork":true,"url":"https://api.github.com/repos/milanperera/product-mdm","forks_url":"https://api.github.com/repos/milanperera/product-mdm/forks","keys_url":"https://api.github.com/repos/milanperera/product-mdm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/milanperera/product-mdm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/milanperera/product-mdm/teams","hooks_url":"https://api.github.com/repos/milanperera/product-mdm/hooks","issue_events_url":"https://api.github.com/repos/milanperera/product-mdm/issues/events{/number}","events_url":"https://api.github.com/repos/milanperera/product-mdm/events","assignees_url":"https://api.github.com/repos/milanperera/product-mdm/assignees{/user}","branches_url":"https://api.github.com/repos/milanperera/product-mdm/branches{/branch}","tags_url":"https://api.github.com/repos/milanperera/product-mdm/tags","blobs_url":"https://api.github.com/repos/milanperera/product-mdm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/milanperera/product-mdm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/milanperera/product-mdm/git/refs{/sha}","trees_url":"https://api.github.com/repos/milanperera/product-mdm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/milanperera/product-mdm/statuses/{sha}","languages_url":"https://api.github.com/repos/milanperera/product-mdm/languages","stargazers_url":"https://api.github.com/repos/milanperera/product-mdm/stargazers","contributors_url":"https://api.github.com/repos/milanperera/product-mdm/contributors","subscribers_url":"https://api.github.com/repos/milanperera/product-mdm/subscribers","subscription_url":"https://api.github.com/repos/milanperera/product-mdm/subscription","commits_url":"https://api.github.com/repos/milanperera/product-mdm/commits{/sha}","git_commits_url":"https://api.github.com/repos/milanperera/product-mdm/git/commits{/sha}","comments_url":"https://api.github.com/repos/milanperera/product-mdm/comments{/number}","issue_comment_url":"https://api.github.com/repos/milanperera/product-mdm/issues/comments{/number}","contents_url":"https://api.github.com/repos/milanperera/product-mdm/contents/{+path}","compare_url":"https://api.github.com/repos/milanperera/product-mdm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/milanperera/product-mdm/merges","archive_url":"https://api.github.com/repos/milanperera/product-mdm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/milanperera/product-mdm/downloads","issues_url":"https://api.github.com/repos/milanperera/product-mdm/issues{/number}","pulls_url":"https://api.github.com/repos/milanperera/product-mdm/pulls{/number}","milestones_url":"https://api.github.com/repos/milanperera/product-mdm/milestones{/number}","notifications_url":"https://api.github.com/repos/milanperera/product-mdm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/milanperera/product-mdm/labels{/name}","releases_url":"https://api.github.com/repos/milanperera/product-mdm/releases{/id}","created_at":"2015-04-16T09:47:28Z","updated_at":"2015-05-05T09:52:18Z","pushed_at":"2015-05-14T12:45:07Z","git_url":"git://github.com/milanperera/product-mdm.git","ssh_url":"git@github.com:milanperera/product-mdm.git","clone_url":"https://github.com/milanperera/product-mdm.git","svn_url":"https://github.com/milanperera/product-mdm","homepage":null,"size":11152,"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":"wso2:master","ref":"master","sha":"836036641004ee12d4894500121cfce3a2759eea","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":29459213,"name":"product-mdm","full_name":"wso2/product-mdm","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/product-mdm","description":"","fork":false,"url":"https://api.github.com/repos/wso2/product-mdm","forks_url":"https://api.github.com/repos/wso2/product-mdm/forks","keys_url":"https://api.github.com/repos/wso2/product-mdm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/product-mdm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/product-mdm/teams","hooks_url":"https://api.github.com/repos/wso2/product-mdm/hooks","issue_events_url":"https://api.github.com/repos/wso2/product-mdm/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/product-mdm/events","assignees_url":"https://api.github.com/repos/wso2/product-mdm/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/product-mdm/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/product-mdm/tags","blobs_url":"https://api.github.com/repos/wso2/product-mdm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/product-mdm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/product-mdm/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/product-mdm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/product-mdm/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/product-mdm/languages","stargazers_url":"https://api.github.com/repos/wso2/product-mdm/stargazers","contributors_url":"https://api.github.com/repos/wso2/product-mdm/contributors","subscribers_url":"https://api.github.com/repos/wso2/product-mdm/subscribers","subscription_url":"https://api.github.com/repos/wso2/product-mdm/subscription","commits_url":"https://api.github.com/repos/wso2/product-mdm/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/product-mdm/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/product-mdm/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/product-mdm/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/product-mdm/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/product-mdm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/product-mdm/merges","archive_url":"https://api.github.com/repos/wso2/product-mdm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/product-mdm/downloads","issues_url":"https://api.github.com/repos/wso2/product-mdm/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/product-mdm/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/product-mdm/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/product-mdm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/product-mdm/labels{/name}","releases_url":"https://api.github.com/repos/wso2/product-mdm/releases{/id}","created_at":"2015-01-19T07:36:01Z","updated_at":"2015-05-09T17:02:08Z","pushed_at":"2015-05-14T13:02:13Z","git_url":"git://github.com/wso2/product-mdm.git","ssh_url":"git@github.com:wso2/product-mdm.git","clone_url":"https://github.com/wso2/product-mdm.git","svn_url":"https://github.com/wso2/product-mdm","homepage":null,"size":12332,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":3,"forks":11,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/product-mdm/pulls/52"},"html":{"href":"https://github.com/wso2/product-mdm/pull/52"},"issue":{"href":"https://api.github.com/repos/wso2/product-mdm/issues/52"},"comments":{"href":"https://api.github.com/repos/wso2/product-mdm/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/product-mdm/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/product-mdm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/product-mdm/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/product-mdm/statuses/1f211c2e86590b03a6ece4bce7e08810da3ee913"}}}}