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 158620

Summary: NullPointerException at org.netbeans.modules.ruby.testrunner.ui.RubyTestsuiteNode.getFirstTestCase
Product: ruby Reporter: mvanek <mvanek>
Component: CodeAssignee: Erno Mononen <emononen>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=146376
Issue Type: DEFECT Exception Reporter: 146376
Attachments: stacktrace

Description mvanek 2009-02-16 15:54:58 UTC
Build: NetBeans IDE Dev (Build 200902120201)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-11-generic, amd64

User Comments:
mvanek: 1. Run automated test in ruby for kenai
2. during test run right click test name in test result window
NPE appeares



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.ruby.testrunner.ui.RubyTestsuiteNode.getFirstTestCase(RubyTestsuiteNode.java:72)
        at org.netbeans.modules.ruby.testrunner.ui.RubyTestsuiteNode.getPreferredAction(RubyTestsuiteNode.java:77)
        at org.netbeans.modules.ruby.testrunner.ui.RubyTestsuiteNode.getActions(RubyTestsuiteNode.java:96)
        at org.openide.nodes.NodeOp.findActions(NodeOp.java:144)
        at org.openide.explorer.view.TreeView.createPopup(TreeView.java:963)
        at org.openide.explorer.view.TreeView$PopupAdapter.showPopup(TreeView.java:1439)
Comment 1 mvanek 2009-02-16 15:55:03 UTC
Created attachment 77028 [details]
stacktrace
Comment 2 mvanek 2009-02-16 16:00:49 UTC
For clear understation - during test run righ click 
Acceptance test running node label
Comment 3 Erno Mononen 2009-03-13 16:19:00 UTC
Fixed in 2210be4439da (ruby-main), thanks for the catch.
Comment 4 Quality Engineering 2009-03-17 08:34:15 UTC
Integrated into 'main-golden', will be available in build *200903170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/2210be4439da
User: Erno Mononen <emononen@netbeans.org>
Log: #158620: NullPointerException at org.netbeans.modules.ruby.testrunner.ui.RubyTestsuiteNode.getFirstTestCase