Skip to content

Commit

Permalink
FindBugs: just another getInstance() check
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-nenashev committed Jun 12, 2017
1 parent 466393e commit 94deb64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public void doConfigSubmit(StaplerRequest req, StaplerResponse rsp) throws Servl
}

public DescriptorImpl getDescriptor() {
return Hudson.getInstance().getDescriptorByType(DescriptorImpl.class);
return Jenkins.getActiveInstance().getDescriptorByType(DescriptorImpl.class);
}

/**
Expand Down

0 comments on commit 94deb64

Please sign in to comment.