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

AccuRev plugin throws NullPointerException when polling for changes

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • accurev-plugin
    • None
    • WindowsXP-32bit & Windows 7-64bit.
      Separate Jenkins master and slaves.

    Description

      In AccurevSCM.java, the method getStreams(...) can return null (and sometimes does, as the AccuRev client executable sometimes fails to work).
      In method pollChanges(...), getStreams is called, the result assigned to a Map and then the map is interrogated without a null check.
      This can (and does, sometimes) throw a NPE (and the logging, aside from showing where the faulty code was, gives no clue as to what the plugin was trying to do, what accurev command failed and what error(s) it reported).

      Attachments

        Issue Links

          Activity

            pjdarton pjdarton added a comment -

            Uploaded patch that builds upon changes made for JENKINS-8039 that:

            • fixes the null-pointer exception.
            • improves the logging when accurev commands fail.
            • fixed minor error in parsing of accurev streams.
            pjdarton pjdarton added a comment - Uploaded patch that builds upon changes made for JENKINS-8039 that: fixes the null-pointer exception. improves the logging when accurev commands fail. fixed minor error in parsing of accurev streams.

            fixed in v 0.6.15

            helterscelter helter scelter added a comment - fixed in v 0.6.15

            People

              helterscelter helter scelter
              pjdarton pjdarton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: