-
Notifications
You must be signed in to change notification settings - Fork 396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unexpected npe fixes for findbugs #70
Conversation
Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests |
@@ -55,8 +55,8 @@ protected EnvVars buildEnv(AbstractProject<?, ?> job) { | |||
for (EnvironmentContributor contributor : EnvironmentContributor.all()) { | |||
try { | |||
contributor.buildEnvironmentFor(job, env, TaskListener.NULL); | |||
} catch (Exception e) { | |||
LOGGER.debug("{} failed to build environment ({})", contributor.getClass(), e.getMessage()); | |||
} catch (Throwable t) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the discussions in other PRs we agreed that this approach is not good, because it suppresses various kinds of system Error
s, which are supposed to be system failures
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so catch only Exception
?
I'm mostly OK with the fix, but actually it makes the further merge even harder. |
@oleg-nenashev All codebase has changed. This PR fix 99% of current fb issues so your pr can be just skipped as i have plan to connect sonarQube |
Yes, seems so. BTW it makes sense to apply the POM changes. I'll do it latet |
} | ||
|
||
@Override | ||
public int hashCode() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't this influence on queue?
We (with @KostyaSha) decided not to change equals and hashcode in cause object as of it may brake something in job sheduling |
unexpected npe fixes for findbugs
contains rewrited parts from #63 (but not whole)
plz review @oleg-nenashev
think other findbugs issues can be ignored