prabalpratap123 / radar-netbeans

Automatically exported from code.google.com/p/radar-netbeans
0 stars 0 forks source link

NullPointerException when "Show rule info" #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. In NetBeans Tools | Options -> Miscellaneous Button -> SonarQube tab, set 
Server Url to SonarQube server and Analysis Mode for Runner to either Preview 
or Incremental
2. In NetBeans Project View, Right-Click on a project and select “Get Issues 
with Sonar Runner”.  An analysis will successfully complete.
3. NetBeans displays a summary tab with a tree of issues.  Expanding and 
right-click on any issue and “Show rule info”.  NetBeans reports in the 
Notifications window an Unexpected Exception with Priority SILENT, Category 
Error.  Details of the Exception are provided in the additional information.

Alternatively,
3. NetBeans displays a summary tab with a tree of issues.  Expanding and 
double-click on any issue and the Issue information is displayed in another 
tab.  Right-click on the issue and “Show rule info about issue”.  NetBeans 
reports in the Notifications window an Unexpected Exception with Priority 
SILENT, Category Error.  Details of the Exception are provided in the 
additional information.

What is the expected output? What do you see instead?
Expected: Information/Description about the specific rule.
Actual: NullPointerException is thrown

What version of the product are you using? On what operating system?
- NetBeans 8.01
- radar-netbeans 2.1 revision a5fb837d8181
- SonarQube 4.4
- Windows 7 x64

Please provide any additional information below.
The following NPE is thrown
java.lang.NullPointerException
       at qubexplorer.ui.RuleTask.success(RuleTask.java:31)
       at qubexplorer.ui.RuleTask.success(RuleTask.java:14)
       at qubexplorer.ui.task.TaskExecutor$TaskWorker.done(TaskExecutor.java:70)
       at javax.swing.SwingWorker$5.run(SwingWorker.java:737)
       at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:832)
       at sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
       at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:842)
       at javax.swing.Timer.fireActionPerformed(Timer.java:312)
       at javax.swing.Timer$DoPostEvent.run(Timer.java:244)
       at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
       at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
       at java.awt.EventQueue.access$200(EventQueue.java:103)
       at java.awt.EventQueue$3.run(EventQueue.java:694)
       at java.awt.EventQueue$3.run(EventQueue.java:692)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
       at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
       at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242
)
       at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
       at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
       at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Original issue reported on code.google.com by charles....@gmail.com on 30 Sep 2014 at 5:26

GoogleCodeExporter commented 8 years ago
This is a problem of the current Sonar Cliente API used in Radar vs the version 
4.4 of SonarQube Server. Work in progress to use a newer API.

Original comment by hmvic...@gmail.com on 1 Oct 2014 at 3:40