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 255406

Summary: NullPointerException at org.netbeans.modules.python.project.ui.actions.RunCommand.invokeAction
Product: python Reporter: Lou Dasaro <mr_lou_d>
Component: ProjectsAssignee: Lou Dasaro <mr_lou_d>
Status: RESOLVED FIXED    
Severity: normal CC: Jenselme
Priority: P4    
Version: 8.1   
Hardware: All   
OS: All   
See Also: https://netbeans.org/bugzilla/show_bug.cgi?id=187719
Issue Type: DEFECT Exception Reporter: 220028
Attachments: stacktrace

Description Lou Dasaro 2015-09-18 16:45:01 UTC
Build: NetBeans IDE Dev (Build 20150918-d6b11228f220)
VM: Java HotSpot(TM) Client VM, 24.79-b02, Java(TM) SE Runtime Environment, 1.7.0_79-b15
OS: Windows 8

User Comments:
mr_lou_d: Product = Python

Create new test.
Right-click on project and invoke "Test"
See also Bug 187719




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.python.project.ui.actions.RunCommand.invokeAction(RunCommand.java:50)
   at org.netbeans.modules.python.project.PythonActionProvider$1.run(PythonActionProvider.java:95)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
   at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
   at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Comment 1 Lou Dasaro 2015-09-18 16:45:03 UTC
Created attachment 156284 [details]
stacktrace
Comment 2 Lou Dasaro 2015-09-24 21:51:14 UTC
Changeset: e7dec3cc5053
Author:    Lou Dasaro <mr_lou_d@netbeans.org>
Date:      2015-09-24 16:04
Message:   Added check for null TestRunner before invoking.
Also, disabled "Test" menu item until TestRunner is working again
Changes should be available in development build on 24 or 25-Sep-2015
Please leave bug open until 8.1 FCS (in case others with previous build report it).
Comment 3 Lou Dasaro 2015-11-27 20:31:28 UTC
"Fixed" in Python Plugin version .151118, in that the exception no longer occurs.
If you get this error, and are using NetBeans IDE 8.0.x, please upgrade to IDE 8.1 and install the latest Python plugin from the Update Center (Tools->Plugins).

However, tests are currently broken. See bug#187719

If you are using NetBeans 8.1 with Python Plugin version .151118 or greater, please reopen with a duplicable test case and my apologies.