Commit 1037586d authored by Danny Tuppeny's avatar Danny Tuppeny Committed by Danny Tuppeny

Don't try to build emulators from empty output

parent fe762666
......@@ -72,7 +72,7 @@ List<AndroidEmulator> getEmulatorAvds() {
/// Parse the given `emulator -list-avds` output in [text], and fill out the given list
/// of emulators by reading information from the relevant ini files.
void extractEmulatorAvdInfo(String text, List<AndroidEmulator> emulators) {
for (String id in text.trim().split('\n')) {
for (String id in text.trim().split('\n').where((String l) => l != '')) {
emulators.add(_createEmulator(id));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment