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

Computer.toNode() can return null #25

Merged
merged 2 commits into from
Apr 27, 2015
Merged

Conversation

stephenc
Copy link
Member

@reviewbybees

@mindjiver
Copy link
Contributor

This looks alright, but there is some whitespace lingering, could you strip them away? 😄

@jenkinsadmin
Copy link
Member

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

@jglick
Copy link
Member

jglick commented Apr 23, 2015

👍

final Slave node = computer.getNode();
if (node != null) {
try {
Jenkins.getInstance().removeNode(node);
Copy link
Member

Choose a reason for hiding this comment

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

Minor: This method call also can return null. It should not happens in the handler, but FindBugs and other guys will complain

Copy link
Member Author

Choose a reason for hiding this comment

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

Not on Jenkins 1.480 which is what swarm is based on ;-)

@stephenc
Copy link
Member Author

@mindjiver this pull request has now successfully completed the CloudBees internal processes and we are now asking you, as the maintainer of the plugin for any additiona feedback with a view towards merging and cutting a new release with this fix

mindjiver added a commit that referenced this pull request Apr 27, 2015
Computer.toNode() can return null
@mindjiver mindjiver merged commit 704dd97 into jenkinsci:master Apr 27, 2015
@stephenc stephenc deleted the null-safety branch April 27, 2015 11:22
@stephenc
Copy link
Member Author

@mindjiver thank you

@mindjiver
Copy link
Contributor

@stephenc The plugin should be released now, I'm updating the release information on the wiki

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.

5 participants