Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions shell/common/isolate_configuration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,20 @@ std::unique_ptr<IsolateConfiguration> IsolateConfiguration::InferFromSettings(

// Running from kernel divided into several pieces (for sharing).
{
if (settings.application_kernel_list_asset.empty()) {
FML_LOG(ERROR) << "Application kernel list asset not set";
return nullptr;
}
std::unique_ptr<fml::Mapping> kernel_list =
asset_manager->GetAsMapping(settings.application_kernel_list_asset);
if (kernel_list) {
auto kernel_pieces_paths = ParseKernelListPaths(std::move(kernel_list));
auto kernel_mappings = PrepareKernelMappings(
std::move(kernel_pieces_paths), asset_manager, io_worker);
return CreateForKernelList(std::move(kernel_mappings));
if (!kernel_list) {
FML_LOG(ERROR) << "Failed to load: " << settings.application_kernel_asset;
return nullptr;
}
auto kernel_pieces_paths = ParseKernelListPaths(std::move(kernel_list));
auto kernel_mappings = PrepareKernelMappings(std::move(kernel_pieces_paths),
asset_manager, io_worker);
return CreateForKernelList(std::move(kernel_mappings));
}

return nullptr;
Expand Down