OSDN Git Service

- add null check on executable file to android SDK execution
authornormen667 <normen667@75d07b2b-3a1a-0410-a2c5-0572b91ccdca>
Wed, 7 Sep 2011 11:18:03 +0000 (11:18 +0000)
committernormen667 <normen667@75d07b2b-3a1a-0410-a2c5-0572b91ccdca>
Wed, 7 Sep 2011 11:18:03 +0000 (11:18 +0000)
git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@8211 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

sdk/jme3-android/src/com/jme3/gde/android/AndroidSdkTool.java

index 9550964..cfcd265 100644 (file)
@@ -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;
+        }
     }
 
     /**