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

Branch should not allow \n character.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3
    • Component/s: Scanner
    • Labels:
      None

      Description

      When sonar.branch is ended by a line break (possible with Gradle) the analysis fails with a unclear message:

      Caused by: java.lang.NullPointerException
              at org.sonar.batch.source.SymbolizableBuilder.loadPerspective(SymbolizableBuilder.java:46)
              at org.sonar.batch.source.SymbolizableBuilder.loadPerspective(SymbolizableBuilder.java:32)
              at org.sonar.batch.deprecated.perspectives.BatchPerspectives.as(BatchPerspectives.java:63)
              at org.sonar.java.SonarComponents.symbolizableFor(SonarComponents.java:104)
              at org.sonar.java.model.VisitorsBridge.createSonarSymbolTable(VisitorsBridge.java:154)
              at org.sonar.java.model.VisitorsBridge.visitFile(VisitorsBridge.java:124)
              at org.sonar.java.ast.JavaAstScanner.simpleScan(JavaAstScanner.java:94)
      

      https://groups.google.com/d/msg/sonarqube/pEsRBy_ji3g/g-oxmFPnBAAJ

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              duarte.meneses Duarte Meneses
              Reporter:
              julien.henry Julien Henry
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: