Skip to content
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

Merged
merged 1 commit into from
Aug 18, 2015
Merged

unexpected npe fixes for findbugs #70

merged 1 commit into from
Aug 18, 2015

Conversation

lanwen
Copy link
Member

@lanwen lanwen commented Aug 17, 2015

contains rewrited parts from #63 (but not whole)

plz review @oleg-nenashev

think other findbugs issues can be ignored

Review on Reviewable

@jenkinsadmin
Copy link
Member

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) {
Copy link
Member

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 Errors, which are supposed to be system failures

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so catch only Exception ?

@oleg-nenashev
Copy link
Member

I'm mostly OK with the fix, but actually it makes the further merge even harder.
Seems I'll have to respin the pull request from scratch

@lanwen
Copy link
Member Author

lanwen commented Aug 18, 2015

@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

@oleg-nenashev
Copy link
Member

Yes, seems so. BTW it makes sense to apply the POM changes. I'll do it latet

}

@Override
public int hashCode() {
Copy link
Member

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?

@lanwen
Copy link
Member Author

lanwen commented Aug 18, 2015

We (with @KostyaSha) decided not to change equals and hashcode in cause object as of it may brake something in job sheduling

KostyaSha added a commit that referenced this pull request Aug 18, 2015
unexpected npe fixes for findbugs
@KostyaSha KostyaSha merged commit 6b156f1 into jenkinsci:master Aug 18, 2015
@lanwen lanwen deleted the fb branch August 18, 2015 15:09
@jglick jglick mentioned this pull request Aug 18, 2015
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants