{"action":"created","comment":{"url":"https://api.github.com/repos/HyperionsThs/wsm_android/pulls/comments/125382053","pull_request_review_id":47765020,"id":125382053,"diff_hunk":"@@ -24,4 +55,214 @@ public void onStart() {\n     public void onStop() {\n         mPresenter.onStop();\n     }\n+\n+    @Override\n+    public void onGetUserError(BaseException exception) {\n+        Log.e(TAG, \"onGetUserError: \", exception);\n+    }\n+\n+    @Override\n+    public void onGetUserSuccess(User user) {\n+        mUser = user;\n+    }\n+\n+    @Bindable\n+    public String getCurrentGroup() {\n+        return mCurrentGroup;\n+    }\n+\n+    public void setCurrentGroup(String currentGroup) {\n+        mCurrentGroup = currentGroup;\n+        notifyPropertyChanged(BR.currentGroup);\n+    }\n+\n+    @Bindable\n+    public String getCurrentBranch() {\n+        return mCurrentBranch;\n+    }\n+\n+    public void setCurrentBranch(String currentBranch) {\n+        mCurrentBranch = currentBranch;\n+        notifyPropertyChanged(BR.currentBranch);\n+    }\n+\n+    @Bindable\n+    public boolean isNotifiAll() {\n+        return mNotifiAll;\n+    }\n+\n+    public void setNotifiAll(boolean notifiAll) {\n+        mNotifiAll = notifiAll;\n+        notifyPropertyChanged(BR.notifiAll);\n+    }\n+\n+    @Bindable\n+    public boolean isEmailAll() {\n+        return mEmailAll;\n+    }\n+\n+    public void setEmailAll(boolean emailAll) {\n+        mEmailAll = emailAll;\n+        notifyPropertyChanged(BR.emailAll);\n+    }\n+\n+    @Bindable\n+    public boolean isNotifiList() {\n+        return mNotifiList;\n+    }\n+\n+    public void setNotifiList(boolean notifiList) {\n+        mNotifiList = notifiList;\n+        notifyPropertyChanged(BR.notifiList);\n+    }\n+\n+    @Bindable\n+    public boolean isEmailList() {\n+        return mEmailList;\n+    }\n+\n+    public void setEmailList(boolean emailList) {\n+        mEmailList = emailList;\n+        notifyPropertyChanged(BR.emailList);\n+    }\n+\n+    @Bindable\n+    public boolean isNotifiGroup() {\n+        return mNotifiGroup;\n+    }\n+\n+    public void setNotifiGroup(boolean notifiGroup) {\n+        mNotifiGroup = notifiGroup;\n+        notifyPropertyChanged(BR.notifiGroup);\n+    }\n+\n+    @Bindable\n+    public boolean isEmailGroup() {\n+        return mEmailGroup;\n+    }\n+\n+    public void setEmailGroup(boolean emailGroup) {\n+        mEmailGroup = emailGroup;\n+        notifyPropertyChanged(BR.emailGroup);\n+    }\n+\n+    @Bindable\n+    public boolean isNotifiWorkspace() {\n+        return mNotifiWorkspace;\n+    }\n+\n+    public void setNotifiWorkspace(boolean notifiWorkspace) {\n+        mNotifiWorkspace = notifiWorkspace;\n+        notifyPropertyChanged(BR.notifiWorkspace);\n+    }\n+\n+    @Bindable\n+    public boolean isEmailWorkspace() {\n+        return mEmailWorkspace;\n+    }\n+\n+    public void setEmailWorkspace(boolean emailWorkspace) {\n+        mEmailWorkspace = emailWorkspace;\n+        notifyPropertyChanged(BR.emailWorkspace);\n+    }\n+\n+    public void onClickGroup(View view) {\n+        if (mUser == null && mUser.getGroups().size() == 0) {\n+            return;\n+        }\n+        final String[] groups = new String[mUser.getGroups().size()];\n+        for (int i = 0; i < groups.length; i++) {\n+            groups[i] = mUser.getGroups().get(i).getGroupName();\n+        }\n+        mDialogManager.dialogListSingleChoice(mContext.getString(R.string.group), groups,\n+                mCurrentPosition, new MaterialDialog.ListCallbackSingleChoice() {\n+                    @Override\n+                    public boolean onSelection(MaterialDialog materialDialog, View view,\n+                            int positionType, CharSequence charSequence) {\n+                        mCurrentPosition = positionType;\n+                        setCurrentGroup(groups[mCurrentPosition]);\n+                        return true;\n+                    }\n+                });\n+    }\n+\n+    public void onClickWorkspace(View view) {\n+        if (mUser == null && mUser.getBranches().size() == 0) {","path":"app/src/main/java/com/framgia/wsm/screen/setting/SettingProfileViewModel.java","position":186,"original_position":186,"commit_id":"a8b64d4ca3aa566e5098fb4d06c6e157b82deef4","original_commit_id":"a8b64d4ca3aa566e5098fb4d06c6e157b82deef4","user":{"login":"daolq3012","id":20784172,"avatar_url":"https://avatars3.githubusercontent.com/u/20784172?v=3","gravatar_id":"","url":"https://api.github.com/users/daolq3012","html_url":"https://github.com/daolq3012","followers_url":"https://api.github.com/users/daolq3012/followers","following_url":"https://api.github.com/users/daolq3012/following{/other_user}","gists_url":"https://api.github.com/users/daolq3012/gists{/gist_id}","starred_url":"https://api.github.com/users/daolq3012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daolq3012/subscriptions","organizations_url":"https://api.github.com/users/daolq3012/orgs","repos_url":"https://api.github.com/users/daolq3012/repos","events_url":"https://api.github.com/users/daolq3012/events{/privacy}","received_events_url":"https://api.github.com/users/daolq3012/received_events","type":"User","site_admin":false},"body":"ERROR: [BrokenNullCheck] Method call on object which may be null\nhttps://pmd.github.io/pmd-5.5.1/pmd-java/rules/java/basic.html#BrokenNullCheck","created_at":"2017-07-04T03:03:25Z","updated_at":"2017-07-04T03:03:25Z","html_url":"https://github.com/HyperionsThs/wsm_android/pull/8#discussion_r125382053","pull_request_url":"https://api.github.com/repos/HyperionsThs/wsm_android/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/HyperionsThs/wsm_android/pulls/comments/125382053"},"html":{"href":"https://github.com/HyperionsThs/wsm_android/pull/8#discussion_r125382053"},"pull_request":{"href":"https://api.github.com/repos/HyperionsThs/wsm_android/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/HyperionsThs/wsm_android/pulls/8","id":128717025,"html_url":"https://github.com/HyperionsThs/wsm_android/pull/8","diff_url":"https://github.com/HyperionsThs/wsm_android/pull/8.diff","patch_url":"https://github.com/HyperionsThs/wsm_android/pull/8.patch","issue_url":"https://api.github.com/repos/HyperionsThs/wsm_android/issues/8","number":8,"state":"open","locked":false,"title":"Feature setting ui 2","user":{"login":"HyperionsThs","id":28942055,"avatar_url":"https://avatars1.githubusercontent.com/u/28942055?v=3","gravatar_id":"","url":"https://api.github.com/users/HyperionsThs","html_url":"https://github.com/HyperionsThs","followers_url":"https://api.github.com/users/HyperionsThs/followers","following_url":"https://api.github.com/users/HyperionsThs/following{/other_user}","gists_url":"https://api.github.com/users/HyperionsThs/gists{/gist_id}","starred_url":"https://api.github.com/users/HyperionsThs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyperionsThs/subscriptions","organizations_url":"https://api.github.com/users/HyperionsThs/orgs","repos_url":"https://api.github.com/users/HyperionsThs/repos","events_url":"https://api.github.com/users/HyperionsThs/events{/privacy}","received_events_url":"https://api.github.com/users/HyperionsThs/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-07-04T02:50:42Z","updated_at":"2017-07-04T03:03:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f85c8cfc972e3c8b6308452cba2980e1ee11ab82","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/HyperionsThs/wsm_android/pulls/8/commits","review_comments_url":"https://api.github.com/repos/HyperionsThs/wsm_android/pulls/8/comments","review_comment_url":"https://api.github.com/repos/HyperionsThs/wsm_android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HyperionsThs/wsm_android/issues/8/comments","statuses_url":"https://api.github.com/repos/HyperionsThs/wsm_android/statuses/a8b64d4ca3aa566e5098fb4d06c6e157b82deef4","head":{"label":"HyperionsThs:feature_setting_ui_2","ref":"feature_setting_ui_2","sha":"a8b64d4ca3aa566e5098fb4d06c6e157b82deef4","user":{"login":"HyperionsThs","id":28942055,"avatar_url":"https://avatars1.githubusercontent.com/u/28942055?v=3","gravatar_id":"","url":"https://api.github.com/users/HyperionsThs","html_url":"https://github.com/HyperionsThs","followers_url":"https://api.github.com/users/HyperionsThs/followers","following_url":"https://api.github.com/users/HyperionsThs/following{/other_user}","gists_url":"https://api.github.com/users/HyperionsThs/gists{/gist_id}","starred_url":"https://api.github.com/users/HyperionsThs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyperionsThs/subscriptions","organizations_url":"https://api.github.com/users/HyperionsThs/orgs","repos_url":"https://api.github.com/users/HyperionsThs/repos","events_url":"https://api.github.com/users/HyperionsThs/events{/privacy}","received_events_url":"https://api.github.com/users/HyperionsThs/received_events","type":"User","site_admin":false},"repo":{"id":95085161,"name":"wsm_android","full_name":"HyperionsThs/wsm_android","owner":{"login":"HyperionsThs","id":28942055,"avatar_url":"https://avatars1.githubusercontent.com/u/28942055?v=3","gravatar_id":"","url":"https://api.github.com/users/HyperionsThs","html_url":"https://github.com/HyperionsThs","followers_url":"https://api.github.com/users/HyperionsThs/followers","following_url":"https://api.github.com/users/HyperionsThs/following{/other_user}","gists_url":"https://api.github.com/users/HyperionsThs/gists{/gist_id}","starred_url":"https://api.github.com/users/HyperionsThs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyperionsThs/subscriptions","organizations_url":"https://api.github.com/users/HyperionsThs/orgs","repos_url":"https://api.github.com/users/HyperionsThs/repos","events_url":"https://api.github.com/users/HyperionsThs/events{/privacy}","received_events_url":"https://api.github.com/users/HyperionsThs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HyperionsThs/wsm_android","description":null,"fork":true,"url":"https://api.github.com/repos/HyperionsThs/wsm_android","forks_url":"https://api.github.com/repos/HyperionsThs/wsm_android/forks","keys_url":"https://api.github.com/repos/HyperionsThs/wsm_android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HyperionsThs/wsm_android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HyperionsThs/wsm_android/teams","hooks_url":"https://api.github.com/repos/HyperionsThs/wsm_android/hooks","issue_events_url":"https://api.github.com/repos/HyperionsThs/wsm_android/issues/events{/number}","events_url":"https://api.github.com/repos/HyperionsThs/wsm_android/events","assignees_url":"https://api.github.com/repos/HyperionsThs/wsm_android/assignees{/user}","branches_url":"https://api.github.com/repos/HyperionsThs/wsm_android/branches{/branch}","tags_url":"https://api.github.com/repos/HyperionsThs/wsm_android/tags","blobs_url":"https://api.github.com/repos/HyperionsThs/wsm_android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HyperionsThs/wsm_android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HyperionsThs/wsm_android/git/refs{/sha}","trees_url":"https://api.github.com/repos/HyperionsThs/wsm_android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HyperionsThs/wsm_android/statuses/{sha}","languages_url":"https://api.github.com/repos/HyperionsThs/wsm_android/languages","stargazers_url":"https://api.github.com/repos/HyperionsThs/wsm_android/stargazers","contributors_url":"https://api.github.com/repos/HyperionsThs/wsm_android/contributors","subscribers_url":"https://api.github.com/repos/HyperionsThs/wsm_android/subscribers","subscription_url":"https://api.github.com/repos/HyperionsThs/wsm_android/subscription","commits_url":"https://api.github.com/repos/HyperionsThs/wsm_android/commits{/sha}","git_commits_url":"https://api.github.com/repos/HyperionsThs/wsm_android/git/commits{/sha}","comments_url":"https://api.github.com/repos/HyperionsThs/wsm_android/comments{/number}","issue_comment_url":"https://api.github.com/repos/HyperionsThs/wsm_android/issues/comments{/number}","contents_url":"https://api.github.com/repos/HyperionsThs/wsm_android/contents/{+path}","compare_url":"https://api.github.com/repos/HyperionsThs/wsm_android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HyperionsThs/wsm_android/merges","archive_url":"https://api.github.com/repos/HyperionsThs/wsm_android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HyperionsThs/wsm_android/downloads","issues_url":"https://api.github.com/repos/HyperionsThs/wsm_android/issues{/number}","pulls_url":"https://api.github.com/repos/HyperionsThs/wsm_android/pulls{/number}","milestones_url":"https://api.github.com/repos/HyperionsThs/wsm_android/milestones{/number}","notifications_url":"https://api.github.com/repos/HyperionsThs/wsm_android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HyperionsThs/wsm_android/labels{/name}","releases_url":"https://api.github.com/repos/HyperionsThs/wsm_android/releases{/id}","deployments_url":"https://api.github.com/repos/HyperionsThs/wsm_android/deployments","created_at":"2017-06-22T07:03:57Z","updated_at":"2017-06-22T07:03:59Z","pushed_at":"2017-07-04T02:54:04Z","git_url":"git://github.com/HyperionsThs/wsm_android.git","ssh_url":"git@github.com:HyperionsThs/wsm_android.git","clone_url":"https://github.com/HyperionsThs/wsm_android.git","svn_url":"https://github.com/HyperionsThs/wsm_android","homepage":null,"size":12250,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"base":{"label":"HyperionsThs:develop","ref":"develop","sha":"5fe446e7dd13adfa886a31f11fcc5060f34405c5","user":{"login":"HyperionsThs","id":28942055,"avatar_url":"https://avatars1.githubusercontent.com/u/28942055?v=3","gravatar_id":"","url":"https://api.github.com/users/HyperionsThs","html_url":"https://github.com/HyperionsThs","followers_url":"https://api.github.com/users/HyperionsThs/followers","following_url":"https://api.github.com/users/HyperionsThs/following{/other_user}","gists_url":"https://api.github.com/users/HyperionsThs/gists{/gist_id}","starred_url":"https://api.github.com/users/HyperionsThs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyperionsThs/subscriptions","organizations_url":"https://api.github.com/users/HyperionsThs/orgs","repos_url":"https://api.github.com/users/HyperionsThs/repos","events_url":"https://api.github.com/users/HyperionsThs/events{/privacy}","received_events_url":"https://api.github.com/users/HyperionsThs/received_events","type":"User","site_admin":false},"repo":{"id":95085161,"name":"wsm_android","full_name":"HyperionsThs/wsm_android","owner":{"login":"HyperionsThs","id":28942055,"avatar_url":"https://avatars1.githubusercontent.com/u/28942055?v=3","gravatar_id":"","url":"https://api.github.com/users/HyperionsThs","html_url":"https://github.com/HyperionsThs","followers_url":"https://api.github.com/users/HyperionsThs/followers","following_url":"https://api.github.com/users/HyperionsThs/following{/other_user}","gists_url":"https://api.github.com/users/HyperionsThs/gists{/gist_id}","starred_url":"https://api.github.com/users/HyperionsThs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyperionsThs/subscriptions","organizations_url":"https://api.github.com/users/HyperionsThs/orgs","repos_url":"https://api.github.com/users/HyperionsThs/repos","events_url":"https://api.github.com/users/HyperionsThs/events{/privacy}","received_events_url":"https://api.github.com/users/HyperionsThs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HyperionsThs/wsm_android","description":null,"fork":true,"url":"https://api.github.com/repos/HyperionsThs/wsm_android","forks_url":"https://api.github.com/repos/HyperionsThs/wsm_android/forks","keys_url":"https://api.github.com/repos/HyperionsThs/wsm_android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HyperionsThs/wsm_android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HyperionsThs/wsm_android/teams","hooks_url":"https://api.github.com/repos/HyperionsThs/wsm_android/hooks","issue_events_url":"https://api.github.com/repos/HyperionsThs/wsm_android/issues/events{/number}","events_url":"https://api.github.com/repos/HyperionsThs/wsm_android/events","assignees_url":"https://api.github.com/repos/HyperionsThs/wsm_android/assignees{/user}","branches_url":"https://api.github.com/repos/HyperionsThs/wsm_android/branches{/branch}","tags_url":"https://api.github.com/repos/HyperionsThs/wsm_android/tags","blobs_url":"https://api.github.com/repos/HyperionsThs/wsm_android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HyperionsThs/wsm_android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HyperionsThs/wsm_android/git/refs{/sha}","trees_url":"https://api.github.com/repos/HyperionsThs/wsm_android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HyperionsThs/wsm_android/statuses/{sha}","languages_url":"https://api.github.com/repos/HyperionsThs/wsm_android/languages","stargazers_url":"https://api.github.com/repos/HyperionsThs/wsm_android/stargazers","contributors_url":"https://api.github.com/repos/HyperionsThs/wsm_android/contributors","subscribers_url":"https://api.github.com/repos/HyperionsThs/wsm_android/subscribers","subscription_url":"https://api.github.com/repos/HyperionsThs/wsm_android/subscription","commits_url":"https://api.github.com/repos/HyperionsThs/wsm_android/commits{/sha}","git_commits_url":"https://api.github.com/repos/HyperionsThs/wsm_android/git/commits{/sha}","comments_url":"https://api.github.com/repos/HyperionsThs/wsm_android/comments{/number}","issue_comment_url":"https://api.github.com/repos/HyperionsThs/wsm_android/issues/comments{/number}","contents_url":"https://api.github.com/repos/HyperionsThs/wsm_android/contents/{+path}","compare_url":"https://api.github.com/repos/HyperionsThs/wsm_android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HyperionsThs/wsm_android/merges","archive_url":"https://api.github.com/repos/HyperionsThs/wsm_android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HyperionsThs/wsm_android/downloads","issues_url":"https://api.github.com/repos/HyperionsThs/wsm_android/issues{/number}","pulls_url":"https://api.github.com/repos/HyperionsThs/wsm_android/pulls{/number}","milestones_url":"https://api.github.com/repos/HyperionsThs/wsm_android/milestones{/number}","notifications_url":"https://api.github.com/repos/HyperionsThs/wsm_android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HyperionsThs/wsm_android/labels{/name}","releases_url":"https://api.github.com/repos/HyperionsThs/wsm_android/releases{/id}","deployments_url":"https://api.github.com/repos/HyperionsThs/wsm_android/deployments","created_at":"2017-06-22T07:03:57Z","updated_at":"2017-06-22T07:03:59Z","pushed_at":"2017-07-04T02:54:04Z","git_url":"git://github.com/HyperionsThs/wsm_android.git","ssh_url":"git@github.com:HyperionsThs/wsm_android.git","clone_url":"https://github.com/HyperionsThs/wsm_android.git","svn_url":"https://github.com/HyperionsThs/wsm_android","homepage":null,"size":12250,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/HyperionsThs/wsm_android/pulls/8"},"html":{"href":"https://github.com/HyperionsThs/wsm_android/pull/8"},"issue":{"href":"https://api.github.com/repos/HyperionsThs/wsm_android/issues/8"},"comments":{"href":"https://api.github.com/repos/HyperionsThs/wsm_android/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/HyperionsThs/wsm_android/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/HyperionsThs/wsm_android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HyperionsThs/wsm_android/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/HyperionsThs/wsm_android/statuses/a8b64d4ca3aa566e5098fb4d06c6e157b82deef4"}}}}
{"actor":{"display_login":"daolq3012"}}