Skip to content

fix: handle empty public handles and related elements - #1032

Merged
andiwand merged 2 commits into
mainfrom
review/14-public-handles
Oct 4, 2026
Merged

andiwand merged 2 commits into
mainfrom
review/14-public-handles

Conversation

@andiwand

@andiwand andiwand commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

Opening/probing a default File and accessing default HTML handles dereferenced null. Those boundaries now throw NullPointerError. Related-element readers reuse the existing checked narrowing operations, so absent master pages and table rows/columns return empty handles without querying adapter ID zero. Document edits also reject an empty element before dispatching it.

Three regression cases cover file probes, HTML handles and missing ODF elements. Validation: library/test build, public C++20 headers, and 131 document/edit/file tests passed.

@andiwand
andiwand force-pushed the review/13-walker-copies branch from c8c444f to bed4ee2 Compare October 4, 2026 20:50
Base automatically changed from review/13-walker-copies to main October 4, 2026 20:53
andiwand and others added 2 commits October 4, 2026 22:53
The test sat between an existing comment and the test that the comment
describes. It now comes before that comment and uses the `html` suite of
the file. The getters are [[nodiscard]], so the test discards their
results through std::ignore, because -Werror on CI rejects
-Wunused-result.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gb1fLafqqzehpqPuU6uBfn
@andiwand
andiwand force-pushed the review/14-public-handles branch from 9b73920 to a93e2b5 Compare October 4, 2026 20:58
@andiwand
andiwand merged commit debed64 into main Oct 4, 2026
23 checks passed
@andiwand
andiwand deleted the review/14-public-handles branch October 4, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant