Handle missing Android SDKs in getEmulators() (#67295)
This commit is contained in:
@@ -56,7 +56,7 @@ class AndroidEmulators extends EmulatorDiscovery {
|
||||
|
||||
/// Return the list of available emulator AVDs.
|
||||
Future<List<AndroidEmulator>> _getEmulatorAvds() async {
|
||||
final String emulatorPath = _androidSdk.emulatorPath;
|
||||
final String emulatorPath = _androidSdk?.emulatorPath;
|
||||
if (emulatorPath == null) {
|
||||
return <AndroidEmulator>[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user