Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CB-13571: (android) Prevent crash with unrecognized android version
Fixes issue where commands that list images will crash when an image with a version not present in `android-versions` is encountered, as is presently the case with API 27: ``` cordova run android --list Available android devices: Available android virtual devices: LEVEL: null ERROR: TypeError: Cannot read property 'semver' of null An unexpected error has occured while running list-emulator-images with code 2: Error: /home/chris/Repositories/acp-guidelines/cordova/platforms/android/cordova/lib/list-emulator-images: Command failed with exit code 2 ``` Signed-off-by: Chris Alfano <chris@jarv.us>
- Loading branch information
109112a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
109112a
109112a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
109112a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#422
109112a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im using cordova 7.0.0 and this is still a problem? It works when i changed this line of code but little annoying need to do it all the time...