Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RCORE-2167: C API: Fix empty keypath issue #7986

Merged
merged 1 commit into from
Aug 15, 2024
Merged

RCORE-2167: C API: Fix empty keypath issue #7986

merged 1 commit into from
Aug 15, 2024

Conversation

jedelbo
Copy link
Contributor

@jedelbo jedelbo commented Aug 15, 2024

What, How & Why?

Fixes #7805

☑️ ToDos

  • 📝 Changelog update
  • 🚦 Tests (or not relevant)
  • C-API, if public C++ API changed
  • bindgen/spec.yml, if public C++ API changed

@@ -67,7 +67,7 @@ struct DictionaryNotificationsCallback {
std::optional<KeyPathArray> build_key_path_array(realm_key_path_array_t* key_path_array)
{
std::optional<KeyPathArray> ret;
if (key_path_array && key_path_array->size()) {
if (key_path_array) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arg, subtle... nice catch!!!

Copy link

Pull Request Test Coverage Report for Build jorgen.edelbo_395

Details

  • 11 of 11 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall first build on je/key-path at 91.097%

Totals Coverage Status
Change from base Build 2566: 91.1%
Covered Lines: 217367
Relevant Lines: 238611

💛 - Coveralls

@jedelbo jedelbo merged commit b641e12 into master Aug 15, 2024
46 of 47 checks passed
@jedelbo jedelbo deleted the je/key-path branch August 15, 2024 09:35
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with building keypath in C API
2 participants