Skip to content

Commit

Permalink
[FIXED JENKINS-12978] NullPoionterException saving jenkins config
Browse files Browse the repository at this point in the history
use fixEmptyAndTrim that handles null
  • Loading branch information
ndeloof committed Mar 5, 2012
1 parent 0e012af commit 90d596f
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -23,6 +23,7 @@
*/
package org.jenkinsci.plugins.mavenrepocleaner;

import static hudson.Util.fixEmptyAndTrim;
import static hudson.Util.fixEmpty;
import hudson.Extension;
import hudson.model.JobProperty;
Expand Down Expand Up @@ -96,7 +97,7 @@ public String getDisplayName() {

@Override
public boolean configure(StaplerRequest req, JSONObject o) throws FormException {
cronSpec = fixEmpty(req.getParameter("mavenrepocleaner.cronSpec")).trim();
cronSpec = fixEmptyAndTrim(req.getParameter("mavenrepocleaner.cronSpec"));
// Default to empty string.
if (cronSpec == null) {
cronSpec = "";
Expand Down

0 comments on commit 90d596f

Please sign in to comment.