Skip to content

Commit

Permalink
Merge pull request #43 from KenanSulayman/patch-1
Browse files Browse the repository at this point in the history
Fixed regression for Node.js 0.10.X
  • Loading branch information
cb1kenobi committed May 5, 2013
2 parents ebaa2c9 + b46fd3d commit e020e3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/android.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ exports.detect = function (finished, sdkPath, ndkPath) {
if (!sdkPath || !afs.exists(sdkPath)) {
sdkPath = result.sdkPath = findSDK();
}

if ( !sdkPath ) {
finished && finished();
return;
}

var exe = result.exe = path.join(sdkPath, 'tools', process.platform == 'win32' ? 'android.bat' : 'android');
if (!afs.exists(exe)) {
Expand Down

0 comments on commit e020e3f

Please sign in to comment.