From 30d6139ee554644018b745cdefe856de1c1780df Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Thu, 22 Jan 2015 15:05:39 -0800 Subject: [PATCH] Fix crash when dependency.path does not exist --- tools/platforms/AndroidPlatform.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/platforms/AndroidPlatform.hx b/tools/platforms/AndroidPlatform.hx index 576a21e41..746ca9347 100644 --- a/tools/platforms/AndroidPlatform.hx +++ b/tools/platforms/AndroidPlatform.hx @@ -300,7 +300,7 @@ class AndroidPlatform extends PlatformTarget { for (dependency in project.dependencies) { - if (dependency.path != "" && FileSystem.isDirectory (dependency.path) && FileSystem.exists (PathHelper.combine (dependency.path, "project.properties"))) { + if (dependency.path != "" && FileSystem.exists (dependency.path) && FileSystem.isDirectory (dependency.path) && FileSystem.exists (PathHelper.combine (dependency.path, "project.properties"))) { var name = dependency.name; if (name == "") name = "project" + index;