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 152591 - run a previously created python project throws NPE
Summary: run a previously created python project throws NPE
Status: VERIFIED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Projects (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: ardavis26
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-06 23:12 UTC by Peter Lam
Modified: 2009-01-15 01:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide log file (24.35 KB, text/plain)
2008-11-06 23:13 UTC, Peter Lam
Details
python launch error dialog (35.23 KB, image/png)
2008-11-08 04:50 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2008-11-06 23:12:58 UTC
Product Version: NetBeans IDE 6.5 (Build 20081106113300)
Java: 1.6.0_07; Java HotSpot(TM) Client VM 10.0-b23
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)

Repro steps:
- start ide from a fresh userdir
- open a previously created python project from previous builds
- right click on the project and select Run. The red round-icon on the lower-right corner of the ide is flashing.
clicking on it shows the following exception and the project has never been run.


java.lang.NullPointerException
	at org.netbeans.modules.python.project.ui.actions.RunCommand.invokeAction(RunCommand.java:59)
	at org.netbeans.modules.python.project.PythonActionProvider$1.run(PythonActionProvider.java:70)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 1 Peter Lam 2008-11-06 23:13:30 UTC
Created attachment 73404 [details]
ide log file
Comment 2 ardavis26 2008-11-07 03:16:01 UTC
Tor and I made some adjustments to the platform storage. all platforms were reassigned ids.  This makes it necessary to
open the project properties and reselect the python platform.  This will fix the npe.
Comment 3 Peter Lam 2008-11-08 04:49:47 UTC
verified in build 162 (20081107). Now the NPE is no longer there but the attached dialog popped up and project is not run.
Comment 4 Peter Lam 2008-11-08 04:50:55 UTC
Created attachment 73529 [details]
python launch error dialog
Comment 5 Peter Lam 2008-11-08 05:03:17 UTC
ok, I see the comment in issue 152322. So, the dialog indicates the different platform that should be fixed. The message
in the diaog should be reworded and formatted in a standard way. Will open an enhancement issue for that. Change this to
fix state.
Comment 6 Peter Lam 2008-11-08 05:03:57 UTC
verified in build 164 (20081107)