SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-1463

Trac Plugin causes NullPointerException when run with ANT projects

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: TRAC-0.2
    • Fix Version/s: TRAC-0.3
    • Component/s: Trac
    • Labels:
    • Environment:
      Sonar 2.11 running on Apache Tomcat 6.x. Trac 0.2 plugin has been install and is active.
    • Testcase included:
      yes
    • Patch Submitted:
      Yes
    • Number of attachments :
      2

      Description

      Our environment supports both ANT and Maven builds. When run with Maven the Trac plugin works as expected but when run with ANT we experiance a NPE in the following scenerio
      1) The project is not yet in Sonar (First Build for this project)
      2) ANT is used instead of Maven.

      I've attached a patch fix that skips the test if the pom is missing. Let me know if this approach is acceptable. All tests pass.

      1. missingPOM.patch
        2 kB
        Bob Paulin
      1. Stacktrace.png
        359 kB

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Papapetrou Patroklos
            Reporter:
            Bob Paulin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: