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'); } }