Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-13775] If the specified or default avd id does not exist, it'll t... #4231

Merged
merged 2 commits into from May 9, 2013
Merged

[TIMOB-13775] If the specified or default avd id does not exist, it'll t... #4231

merged 2 commits into from May 9, 2013

Conversation

cb1kenobi
Copy link
Contributor

...ry to find an Android SDK 2.2 or newer before failing.

…l try to find an Android SDK 2.2 or newer before failing.

// double check and make sure that the avd-id passed (or the default)
// exists as an android target and if not, deal with it vs. bombing
if (!isNaN(avdid) || !androidEnv.targets || !androidEnv.targets[avdid]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if a valid avd-id is passed in (say "10"), !isNaN(avdid) will evaluate to true and the entire conditional will evaluate to true, meaning avdid of 10 will be reset to 0

@cb1kenobi
Copy link
Contributor Author

All is fixed and good (I hope).

@nebrius
Copy link
Contributor

nebrius commented May 9, 2013

Code reviewed and tested. Request accepted

nebrius added a commit that referenced this pull request May 9, 2013
[TIMOB-13775] If the specified or default avd id does not exist, it'll t...
@nebrius nebrius merged commit 04e5ff4 into tidev:master May 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants