Browse Source

- add null check on executable file to android SDK execution

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8211 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 14 years ago
parent
commit
764e3169ae
1 changed files with 5 additions and 1 deletions
  1. 5 1
      jme3-android/src/com/jme3/gde/android/AndroidSdkTool.java

+ 5 - 1
jme3-android/src/com/jme3/gde/android/AndroidSdkTool.java

@@ -129,7 +129,11 @@ public class AndroidSdkTool {
         } else {
             executable = folder.getFileObject("tools/android");
         }
-        return FileUtil.toFile(executable).getPath();
+        if (executable != null) {
+            return FileUtil.toFile(executable).getPath();
+        } else {
+            return null;
+        }
     }
 
     /**