Check null on componentName (#20560)

This commit is contained in:
leoylung
2018-08-14 10:24:17 -07:00
committed by Todd Volkert
parent 4b6cc47338
commit 7762e45115

View File

@@ -90,7 +90,7 @@ Future<Null> writeFuchsiaManifest(AssetBundle assets, String outputBase, String
for (String path in assets.entries.keys) {
outFile.write('data/$path=$outputBase/$path\n');
if (componentName.isNotEmpty) {
if (componentName != null && componentName.isNotEmpty) {
outFile.write('data/$componentName/$path=$outputBase/$path\n');
}
}