From 5d79274363664f085fc9c9c6d9e5ea9b6a4835af Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Wed, 7 Sep 2011 11:18:03 +0000 Subject: [PATCH] - 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 --- .../src/com/jme3/gde/android/AndroidSdkTool.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sdk/jme3-android/src/com/jme3/gde/android/AndroidSdkTool.java b/sdk/jme3-android/src/com/jme3/gde/android/AndroidSdkTool.java index 95509644b..cfcd26565 100644 --- a/sdk/jme3-android/src/com/jme3/gde/android/AndroidSdkTool.java +++ b/sdk/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; + } } /**