jonathanlermitage / tikione-jacocoverage

NetBeans module that provides JaCoCo code coverage for Ant based Java SE, Java EE and NetBeans Module projects (JDK5,6,7,8 compatible).
http://plugins.netbeans.org/plugin/48570/?show=true
Apache License 2.0
27 stars 25 forks source link

No context menu for "not supported project types" #2

Closed rkraneis closed 11 years ago

rkraneis commented 11 years ago

After activating the plugin (1.1.0 from Plugin Portal) and restarting NetBeans (7.3) the context menu for unsupported project types (Maven, Gradle) won't open anymore - which is a bit annoying :-)

I have the following error several times in my messages.log:

SEVERE [global]
java.lang.NullPointerException
    at fr.tikione.jacocoverage.plugin.RunProjectWithJaCoCoAction$ContextAction.<init>(RunProjectWithJaCoCoAction.java:70)
    at fr.tikione.jacocoverage.plugin.RunProjectWithJaCoCoAction.createContextAwareInstance(RunProjectWithJaCoCoAction.java:48)
    at org.openide.util.Utilities.actionsToPopup(Utilities.java:2830)
    at org.openide.util.Utilities.actionsToPopup(Utilities.java:2926)
    at org.openide.explorer.view.TreeView.createPopup(TreeView.java:1058)
    at org.openide.explorer.view.TreeView$PopupAdapter.showPopup(TreeView.java:1555)
    at org.openide.awt.MouseUtils$PopupMouseAdapter.maybePopup(MouseUtils.java:189)
    at org.openide.awt.MouseUtils$PopupMouseAdapter.mouseReleased(MouseUtils.java:184)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
    at java.awt.Component.processMouseEvent(Component.java:6505)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
    at java.awt.Component.processEvent(Component.java:6270)
    at java.awt.Container.processEvent(Container.java:2229)
    at java.awt.Component.dispatchEventImpl(Component.java:4861)
    at java.awt.Container.dispatchEventImpl(Container.java:2287)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
    at java.awt.Container.dispatchEventImpl(Container.java:2273)
    at java.awt.Window.dispatchEventImpl(Window.java:2719)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:682)
    at java.awt.EventQueue$3.run(EventQueue.java:680)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.awt.EventQueue$4.run(EventQueue.java:696)
    at java.awt.EventQueue$4.run(EventQueue.java:694)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
    at org.casaburo.utils.textPopupMenu.PopupMenuEventQueue.dispatchEvent(PopupMenuEventQueue.java:114)
[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)

Besides this it seems to wor fine. I'd really like to use this plugin!

jonathanlermitage commented 11 years ago

Thx for the report! I'll look at this this evening and provide a patch asap.

jonathanlermitage commented 11 years ago

Fixed thx to Jan Lahoda's patch. Version 1.1.1 published on NetBeans PluginPortal and Sourceforge.net.