mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE in editor based widget 2 [anna.kozloava]
This commit is contained in:
@@ -52,7 +52,7 @@ public class GitCurrentBranchWidget extends EditorBasedWidget implements StatusB
|
||||
|
||||
@Override
|
||||
public StatusBarWidget copy() {
|
||||
return new GitCurrentBranchWidget(myProject);
|
||||
return new GitCurrentBranchWidget(getProject());
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@@ -133,7 +133,7 @@ public class GitCurrentBranchWidget extends EditorBasedWidget implements StatusB
|
||||
if (root != null) {
|
||||
GitBranch currentBranch = null;
|
||||
try {
|
||||
currentBranch = GitBranch.current(myProject, root);
|
||||
currentBranch = GitBranch.current(getProject(), root);
|
||||
} catch (VcsException e) {
|
||||
LOG.info("Exception while trying to get current branch for file " + file + " under root " + root, e);
|
||||
// doing nothing - null will be set to myCurrentBranchName
|
||||
|
||||
Reference in New Issue
Block a user