Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-8364

Importing a profile with custom rules fails with a NPE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: 6.7
    • Component/s: Quality Profile
    • Labels:

      Description

      Importing a configuration file that contains some custom rules fails with a NPE.

      For instance, when importing the attached file "checkstyle.xml":

      java.lang.NullPointerException: null
              at org.sonar.server.qualityprofile.QProfileExporters.toRuleActivation(QProfileExporters.java:219) ~[sonar-server-6.0.jar:na]
              at org.sonar.server.qualityprofile.QProfileExporters.importProfile(QProfileExporters.java:195) ~[sonar-server-6.0.jar:na]
              at org.sonar.server.qualityprofile.QProfileExporters.importXml(QProfileExporters.java:186) ~[sonar-server-6.0.jar:na]
              at org.sonar.server.qualityprofile.QProfileExporters.importXml(QProfileExporters.java:178) ~[sonar-server-6.0.jar:na]
              at org.sonar.server.qualityprofile.ws.CreateAction.handle(CreateAction.java:117) ~[sonar-server-6.0.jar:na]
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                eric.hartmann Eric Hartmann
                Reporter:
                julien.lancelot Julien Lancelot
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: