SonarQube Eclipse
  1. SonarQube Eclipse
  2. SONARIDE-256

NPE when opening a locally created file

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Eclipse Helios SR2, Sonar for Eclipse v2.1.0
    • Number of attachments :
      0

      Description

      When opening a file recently created locally, the Sonar console pops up, saying:

      [ERROR] null
      

      In the error log, the following stack trace is found:

      java.lang.NullPointerException
      at org.sonar.ide.eclipse.internal.ui.jobs.RefreshViolationsJob.retrieveDatas(RefreshViolationsJob.java:54)
      at org.sonar.ide.eclipse.internal.ui.jobs.AbstractRefreshModelJob.retrieveMarkers(AbstractRefreshModelJob.java:106)
      at org.sonar.ide.eclipse.internal.ui.jobs.AbstractRefreshModelJob.visit(AbstractRefreshModelJob.java:92)
      at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:112)
      at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:64)
      at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
      at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:127)
      at org.eclipse.core.internal.resources.Resource.accept(Resource.java:74)
      at org.eclipse.core.internal.resources.Resource.accept(Resource.java:110)
      at org.eclipse.core.internal.resources.Resource.accept(Resource.java:94)
      at org.sonar.ide.eclipse.internal.ui.jobs.AbstractRefreshModelJob.run(AbstractRefreshModelJob.java:71)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      

        Activity

        Hide
        Freddy Mallet added a comment -

        I've locally reproduced this issue.

        Show
        Freddy Mallet added a comment - I've locally reproduced this issue.
        Show
        Evgeny Mandrikov added a comment - Fixed in https://github.com/SonarSource/sonar-eclipse/commit/42afedd75029220488df43777f54a11f3f493acb
        Hide
        Freddy Mallet added a comment -

        Tested

        Show
        Freddy Mallet added a comment - Tested

          People

          • Assignee:
            Evgeny Mandrikov
            Reporter:
            James Phillpotts
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: