1.1 --- a/python.core/src/org/netbeans/modules/python/api/PythonPlatformManager.java Mon Sep 19 17:04:00 2016 +0200
1.2 +++ b/python.core/src/org/netbeans/modules/python/api/PythonPlatformManager.java Mon Sep 19 18:52:37 2016 +0200
1.3 @@ -396,6 +396,10 @@
1.4 command = cmd;
1.5 }
1.6 String name = prop.getProperty("platform.name");
1.7 + // If name is null, the command that succeeded is not a Python interpreter (eg /usr/bin/ls)
1.8 + if (name == null) {
1.9 + return null;
1.10 + }
1.11 if (id == null) {
1.12 id = computeId(name);
1.13 }