This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256320 - NullPointerException at org.netbeans.modules.maven.junit.ui.MavenJUnitTestMethodNode.getActions
Summary: NullPointerException at org.netbeans.modules.maven.junit.ui.MavenJUnitTestMet...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
: 256319 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-11-02 12:58 UTC by Jiri Kovalsky
Modified: 2016-04-13 01:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 220891


Attachments
stacktrace (3.01 KB, text/plain)
2015-11-02 12:58 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2015-11-02 12:58:16 UTC
This bug was originally marked as duplicate of bug 249039, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) Client VM, 25.65-b01, Java(TM) SE Runtime Environment, 1.8.0_65-b17
OS: Linux

User Comments:
jkovalsky: Tested my JUnitSampleProjectAnt project and then right clicked "testDivide Failed: expected: <0.0> but was: <NaN>" node to invoke "View Difference" action but popup menu didn't show up.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.maven.junit.ui.MavenJUnitTestMethodNode.getActions(MavenJUnitTestMethodNode.java:90)
   at org.openide.nodes.NodeOp.findActions(NodeOp.java:162)
   at org.openide.explorer.view.TreeView.createPopup(TreeView.java:1056)
   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.mousePressed(MouseUtils.java:180)
Comment 1 Jiri Kovalsky 2015-11-02 12:58:17 UTC
Created attachment 157105 [details]
stacktrace
Comment 2 Tomas Stupka 2016-04-12 13:58:38 UTC
ant project and maven node - not sure if this should ever happen
will prevent NPE and add warning logs
Comment 3 Tomas Stupka 2016-04-12 14:03:33 UTC
*** Bug 256319 has been marked as a duplicate of this bug. ***
Comment 4 Tomas Stupka 2016-04-12 14:56:02 UTC
fixed in jet-main #65a41e83528b
Comment 5 Quality Engineering 2016-04-13 01:48:09 UTC
Integrated into 'main-silver', will be available in build *201604130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/65a41e83528b
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #256320 - NullPointerException at org.netbeans.modules.maven.junit.ui.MavenJUnitTestMethodNode.getActions