Commit 2a2bd7b6 authored by Devon Carew's avatar Devon Carew

fix an exception while parsing a services file (#4302)

parent 2d32f1f1
...@@ -46,7 +46,7 @@ Future<Null> parseServiceConfigs( ...@@ -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( ...@@ -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)));
} }
......
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