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

Don't throw an NPE if build.getWorkspace() is null #105

Merged
merged 1 commit into from
Jul 26, 2016

Conversation

KostaCitrix
Copy link
Contributor

Log a message instead of throwing a NullPointerException if build.getWorkspace() is null.

Are there any tests I could meaningfully extend for this?


import jenkins.util.VirtualFile;

public class FileBuildParameters extends AbstractBuildParameters {
private static final Logger LOGGER = Logger.getLogger(FileBuildParameters.class.getName());

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This wasn't used.

@KostaCitrix
Copy link
Contributor Author

Any chance to get this reviewed or commented? :)

@KostaCitrix
Copy link
Contributor Author

Is there anything I can do to move this forward?

@dsavenko
Copy link

We stumbled across this problem as well. Would be nice to have this PR merged.

@sshelomentsev
Copy link

Hope, this PR will be merged.
@svanoort @huybrechts Could you please review this?

@svanoort
Copy link
Member

👍 to me.

@svanoort svanoort merged commit fbf2b79 into jenkinsci:master Jul 26, 2016
@svanoort
Copy link
Member

@KostaCitrix Thank you for your contribution! The fix looks solid, and since this is a trivial change and already sat a while with no other reviewers... it'll be live in the update center as version 2.32 on the next update cycle (~6 hours).

@KostaCitrix
Copy link
Contributor Author

Awesome! Looking forward to 2.32 :)

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