Fix crash when dependency.path does not exist

This commit is contained in:
Joshua Granick
2015-01-22 15:05:39 -08:00
parent e41411b5e9
commit 30d6139ee5

View File

@@ -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;