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 214329

Summary: NullPointerException at org.netbeans.modules.python.api.PythonPlatform.compareTo
Product: python Reporter: Exceptions Reporter <exceptions_reporter>
Component: CodeAssignee: Lou Dasaro <mr_lou_d>
Status: RESOLVED FIXED    
Severity: normal CC: graydsl
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 189620
Attachments: stacktrace

Description Exceptions Reporter 2012-06-17 09:17:20 UTC
This bug was originally marked as duplicate of bug 155411, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 6.7.1 (Build 200911211148)
VM: Java HotSpot(TM) Client VM, 1.6.0-b105, Java(TM) SE Runtime Environment, 1.6.0-b105
OS: Windows Vista

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.

GUEST: Added python 2.4.4 (for MS Win, from python.org) to "Python Platforms"




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.python.api.PythonPlatform.compareTo(PythonPlatform.java:307)
   at org.netbeans.modules.python.api.PythonPlatform.compareTo(PythonPlatform.java:25)
   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 Exceptions Reporter 2012-06-17 09:17:27 UTC
Created attachment 120952 [details]
stacktrace
Comment 2 Lou Dasaro 2015-06-17 19:41:34 UTC
Unable to replicate. Likely fixed as a result of a number of updates to Python Platform Manager. Marking as Fixed. 
Should be okay with any release from Development after 27-May-2015.