Skip to content

fix: handle None from_entity in Context API RelationSummary#166

Merged
groksrc merged 2 commits intomainfrom
claude/issue-165-20250623_042800
Jun 25, 2025
Merged

fix: handle None from_entity in Context API RelationSummary#166
groksrc merged 2 commits intomainfrom
claude/issue-165-20250623_042800

Conversation

@groksrc
Copy link
Member

@groksrc groksrc commented Jun 23, 2025

Add null check before accessing from_entity.title to prevent AttributeError when relations exist but referenced entities are deleted or inconsistent.

Follows the same pattern already used for to_entity handling.

Fixes #165

Generated with Claude Code

claude bot and others added 2 commits June 23, 2025 04:30
Add null check before accessing from_entity.title to prevent AttributeError
when relations exist but referenced entities are deleted or inconsistent.
Follows the same pattern already used for to_entity handling.

Fixes #165

Co-authored-by: Drew Cain <groksrc@users.noreply.github.com>
Update typedef for RelationSummary

Signed-off-by: Drew Cain <groksrc@gmail.com>
@groksrc
Copy link
Member Author

groksrc commented Jun 24, 2025

:shipit:

@groksrc groksrc merged commit 8a065c3 into main Jun 25, 2025
8 checks passed
@groksrc groksrc deleted the claude/issue-165-20250623_042800 branch June 25, 2025 17:57
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.

AttributeError: 'NoneType' object has no attribute 'title' in Context API

1 participant