Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-16453

GitChangeSet.findOrCreateUser does not use correct method when checking for an email address

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • git-plugin
    • Jenkins ver. 1.499
      git plugin: 1.1.26

    Description

      When checking for an existing email address for a user the proper getAdress() method is not being used:

      GitChangeSet.java, Line 274
      if (fixEmpty(csAuthorEmail) != null && user.getProperty(Mailer.UserProperty.class)==null)
      

      should look like:

      if (fixEmpty(csAuthorEmail) != null && user.getProperty(Mailer.UserProperty.class).getAddress())
      

      Attachments

        Activity

          People

            ndeloof Nicolas De Loof
            matthias Matthias Richter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: