Git plugin 3.6.4 error with empty author email in GitChangeSet.findOrCreateUser()

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      We have a committer who set his email address to empty for some reason, and now all our builds fail on the project. The stack trace suggests that a patch prior to line 365 of GitChangeSet might fix the problem.

       
      public User findOrCreateUser(String csAuthor, String csAuthorEmail, boolean createAccountBasedOnEmail) {

      User user;

      if (csAuthor == null) {
      return User.getUnknown();
      }

      if (createAccountBasedOnEmail) {
      if (csAuthorEmail == null || "".equals(csAuthorEmail)) { // new code block
      return User.getUnknown();
      }
      user = User.get(csAuthorEmail, false); // line 365

            Assignee:
            Unassigned
            Reporter:
            Björn Gustafsson
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: