Skip to content

Commit

Permalink
[c++] Avoid abort on nameless legacy group entries (#3686)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl authored Feb 11, 2025
1 parent 552dfc0 commit eb1b7b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libtiledbsoma/src/soma/soma_group.cc
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ void SOMAGroup::fill_caches() {
default:
throw TileDBSOMAError("Saw invalid TileDB type");
}
members_map_[mem.name().value()] = SOMAGroupEntry(mem.uri(), soma_type);
std::string key = mem.name().has_value() ? mem.name().value() :
mem.uri();
members_map_[key] = SOMAGroupEntry(mem.uri(), soma_type);
}
}

Expand Down

0 comments on commit eb1b7b7

Please sign in to comment.