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

NPE on save configuration for build job #14

Closed
nwillems opened this issue Oct 11, 2012 · 2 comments
Closed

NPE on save configuration for build job #14

nwillems opened this issue Oct 11, 2012 · 2 comments
Milestone

Comments

@nwillems
Copy link

I believe this is caused by a missing value in the retest field when configuring the job. Should this field have a default value, or maybe this should be added to the tutorial in the README?

https://github.com/janinko/ghprb/blob/master/src/main/java/org/jenkinsci/plugins/ghprb/GhprbRepo.java#L49

Stacktrace:
Caused by: java.lang.NullPointerException
at java.util.regex.Pattern.(Pattern.java:1149)
at java.util.regex.Pattern.compile(Pattern.java:840)
at org.jenkinsci.plugins.ghprb.GhprbRepo.(GhprbRepo.java:49)
at org.jenkinsci.plugins.ghprb.GhprbTrigger.start(GhprbTrigger.java:73)
at org.jenkinsci.plugins.ghprb.GhprbTrigger.start(GhprbTrigger.java:33)
at hudson.model.AbstractProject.submit(AbstractProject.java:1848)
at hudson.model.Project.submit(Project.java:197)

EDIT: This might have gone a little fast - the retest has a default value and is stored in the system conf page, but it fails when I try and save a build job

@janinko
Copy link
Owner

janinko commented Oct 20, 2012

If you first configure the system-wide config, there should be default value.
Try to go into: Manage Jenkins -> Configure System -> "Github pull requests builder" section and under Advanced check the phrase fields.

@janinko
Copy link
Owner

janinko commented Nov 14, 2012

I believe this should be fixed now in version 1.4

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

No branches or pull requests

2 participants