Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0
-
Fix Version/s: 2.4
-
Component/s: Hotspots View
-
Labels:None
-
Number of attachments :
Description
The received the following exception (from Eclipse log file):
!ENTRY org.eclipse.core.jobs 4 2 2011-01-31 11:08:52.294 !MESSAGE An internal error occurred during: "Loading hotspots". !STACK 0 java.lang.NullPointerException at org.sonar.wsclient.unmarshallers.AbstractUnmarshaller.toModels(AbstractUnmarshaller.java:48) at org.sonar.wsclient.Sonar.findAll(Sonar.java:64) at org.sonar.ide.eclipse.internal.ui.views.HotspotsView$5.run(HotspotsView.java:239) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Here are the steps on how I got this NPE:
Given
- Sonar IDE plugin is activated for a project in Eclipse
- In the Sonar perspective
- The Sonar > Hotspots view is opened
Then
- I opened a file in Eclipse
Expected result:
- The hotspots are loaded in the Sonar > Hotspots view.
Actual result: - I received the NPE mentioned above and the hotspots are not loaded in the Sonar > Hotspots view.
Prior to that I got another exception in the same place but from a different path: