From 7762e451159823e2c605c8f444f7b4f5b2f3784f Mon Sep 17 00:00:00 2001 From: leoylung Date: Tue, 14 Aug 2018 10:24:17 -0700 Subject: [PATCH] Check null on componentName (#20560) --- packages/flutter_tools/bin/fuchsia_asset_builder.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter_tools/bin/fuchsia_asset_builder.dart b/packages/flutter_tools/bin/fuchsia_asset_builder.dart index 1bcf104cb9..6b313caa33 100644 --- a/packages/flutter_tools/bin/fuchsia_asset_builder.dart +++ b/packages/flutter_tools/bin/fuchsia_asset_builder.dart @@ -90,7 +90,7 @@ Future 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'); } }