Skip to content

Fix NullPointerException in OpenAddressingMap.remove()#113

Merged
adamw7 merged 1 commit into
mainfrom
claude/implement-todo-item-F1U1F
Feb 6, 2026
Merged

Fix NullPointerException in OpenAddressingMap.remove()#113
adamw7 merged 1 commit into
mainfrom
claude/implement-todo-item-F1U1F

Conversation

@adamw7
Copy link
Copy Markdown
Owner

@adamw7 adamw7 commented Feb 6, 2026

The remove() method accessed wrapper.key without null-checking the
wrapper first, causing a NullPointerException when removing a key
that doesn't exist in the map. The get() method already correctly
uses valid(wrapper) before accessing wrapper.key. Apply the same
guard in remove() for consistency and correctness.

https://claude.ai/code/session_01TmQDBbsaz1C3kzhfDBauXB

The remove() method accessed wrapper.key without null-checking the
wrapper first, causing a NullPointerException when removing a key
that doesn't exist in the map. The get() method already correctly
uses valid(wrapper) before accessing wrapper.key. Apply the same
guard in remove() for consistency and correctness.

https://claude.ai/code/session_01TmQDBbsaz1C3kzhfDBauXB
@adamw7 adamw7 merged commit a4f8f46 into main Feb 6, 2026
2 checks passed
@adamw7 adamw7 deleted the claude/implement-todo-item-F1U1F branch February 6, 2026 14:43
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.

2 participants