SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-143

Error when reporting on project module without resources

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDFREPORT-1.0
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Reporting about an empty (without resources) project (or module) cause NullPointerException:

      java.lang.NullPointerException
      	at org.sonar.report.pdf.entity.Project.initCategoriesViolationsFromNode(Project.java:199)
      	at org.sonar.report.pdf.entity.Project.initCategories(Project.java:195)
      	at org.sonar.report.pdf.entity.Project.initializeProject(Project.java:110)
      	at org.sonar.report.pdf.entity.Project.initializeProject(Project.java:123)
      	at org.sonar.report.pdf.PDFReporter.getProject(PDFReporter.java:108)
      	at org.sonar.report.pdf.PDFReporter.getReport(PDFReporter.java:65)
      	at org.sonar.report.pdf.test.ReporterTest.getReportTest(ReporterTest.java:40)
      

        Activity

        Hide
        Antonio Manuel Muñiz Martín added a comment -

        Solved collateraly.

        Show
        Antonio Manuel Muñiz Martín added a comment - Solved collateraly.

          People

          • Assignee:
            Antonio Manuel Muñiz Martín
            Reporter:
            Antonio Manuel Muñiz Martín
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: