mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
fix an exception while parsing a services file (#4302)
This commit is contained in:
parent
2d32f1f1a7
commit
2a2bd7b6f4
@ -46,7 +46,7 @@ Future<Null> parseServiceConfigs(
|
|||||||
String serviceRoot = packageMap[service].path;
|
String serviceRoot = packageMap[service].path;
|
||||||
dynamic serviceConfig = _loadYamlFile('$serviceRoot/$_kFlutterServicesManifestPath');
|
dynamic serviceConfig = _loadYamlFile('$serviceRoot/$_kFlutterServicesManifestPath');
|
||||||
if (serviceConfig == null) {
|
if (serviceConfig == null) {
|
||||||
printStatus('No $_kFlutterServicesManifestPath found for service "$serviceRoot". Skipping.');
|
printStatus('No $_kFlutterServicesManifestPath found for service "$serviceRoot"; skipping.');
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ Future<Null> parseServiceConfigs(
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (jars != null) {
|
if (jars != null && serviceConfig['jars'] is Iterable) {
|
||||||
for (String jar in serviceConfig['jars'])
|
for (String jar in serviceConfig['jars'])
|
||||||
jars.add(new File(await getServiceFromUrl(jar, serviceRoot, service, unzip: false)));
|
jars.add(new File(await getServiceFromUrl(jar, serviceRoot, service, unzip: false)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user