diff --git a/shell/platform/fuchsia/flutter/component.cc b/shell/platform/fuchsia/flutter/component.cc index 99b6ee37d506f..fe2d0c2761691 100644 --- a/shell/platform/fuchsia/flutter/component.cc +++ b/shell/platform/fuchsia/flutter/component.cc @@ -237,10 +237,12 @@ Application::Application( for (auto& dir_str : other_dirs) { fidl::InterfaceHandle dir; auto request = dir.NewRequest().TakeChannel(); - fdio_service_connect_at(directory_ptr_.channel().get(), dir_str, - request.release()); - outgoing_dir_->AddEntry( - dir_str, std::make_unique(dir.TakeChannel())); + auto status = fdio_service_connect_at(directory_ptr_.channel().get(), + dir_str, request.release()); + if (status == ZX_OK) { + outgoing_dir_->AddEntry( + dir_str, std::make_unique(dir.TakeChannel())); + } } };