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 155411 - NullPointerException at org.netbeans.modules.python.api.PythonPlatform.compareTo
Summary: NullPointerException at org.netbeans.modules.python.api.PythonPlatform.compareTo
Status: VERIFIED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: ardavis26
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-13 12:02 UTC by graydsl
Modified: 2009-02-19 22:58 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 143980


Attachments
stacktrace (3.39 KB, text/plain)
2008-12-13 12:03 UTC, graydsl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description graydsl 2008-12-13 12:02:41 UTC
Build: NetBeans IDE Dev (Build 20081213040647)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Linux, 2.6.27-ARCH, i386

User Comments:
graydsl: I deleted an older Python Platform in the Python Platform window. And since then (~ #290) I was not able to run a Python script. Because if I try to change the Python Platform in Project Preferences or for NB a NPE happens.

graydsl: I deleted an older Python Platform in the Python Platform window. And since then (~ #290) I was not able to run a Python script. Because if I try to change the Python Platform in Project Preferences or for NB a NPE happens.



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.python.api.PythonPlatform.compareTo(PythonPlatform.java:305)
        at org.netbeans.modules.python.api.PythonPlatform.compareTo(PythonPlatform.java:24)
        at java.util.Arrays.mergeSort(Arrays.java:1144)
        at java.util.Arrays.sort(Arrays.java:1079)
        at java.util.Collections.sort(Collections.java:117)
        at org.netbeans.modules.python.api.PythonPlatformManager.getPlatforms(PythonPlatformManager.java:300)
Comment 1 graydsl 2008-12-13 12:03:08 UTC
Created attachment 74922 [details]
stacktrace
Comment 2 graydsl 2008-12-19 10:20:34 UTC
This is still a problem in #401. I don't know if it only happens on Linux but this should be considered as a severe bug.
If there is a workaround or something, an email would be nice. In #401 it's possible to change the Python Plattform for
a project but the Tools->Python Platforms gives the NPE above. 
Comment 3 graydsl 2008-12-21 12:50:31 UTC
After deleting /home/user/.netbeans/dev the platform dialog works fine.
Comment 4 Peter Lam 2008-12-24 01:21:54 UTC
verified in build #435. no longer reproducible. Yes, I started from a fresh userdir.