Skip to content

Commit

Permalink
fix spotbugs issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jetersen committed Jan 17, 2022
1 parent 2b81645 commit 1b0db32
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ HttpNotifierSelector getHttpNotifierSelector() {
if (httpNotifierSelector == null) {
Jenkins jenkins = Jenkins.get();
Injector injector = jenkins.getInjector();
injector.injectMembers(this);
if (injector != null) {
injector.injectMembers(this);
}
}
return httpNotifierSelector;
}
Expand Down Expand Up @@ -1082,10 +1084,12 @@ protected String getBuildDescription(
final Run<?, ?> run,
final StashBuildState state) {

if (run.getDescription() != null
&& run.getDescription().trim().length() > 0) {
String runDescription = run.getDescription();

if (runDescription != null
&& runDescription.trim().length() > 0) {

return run.getDescription();
return runDescription;
} else {
switch (state) {
case INPROGRESS:
Expand Down

0 comments on commit 1b0db32

Please sign in to comment.