Skip to content

Defend against NRE in ClientMsgProtobuf constructor - #1655

Merged
xPaw merged 1 commit into
masterfrom
clientmsg-throw
Nov 2, 2026
Merged

xPaw merged 1 commit into
masterfrom
clientmsg-throw

Conversation

@yaakov-h

@yaakov-h yaakov-h commented Nov 2, 2026

Copy link
Copy Markdown
Member

If msg is null, the constructor will trigger a NullReferenceException when accessing msg.Header.

This PR guards that with an explicit ArgumentNullException instead.

@yaakov-h
yaakov-h requested a review from xPaw November 2, 2026 02:20
@yaakov-h yaakov-h added the bug label Nov 2, 2026
@xPaw
xPaw merged commit 3f50ea1 into master Nov 2, 2026
17 checks passed
@xPaw
xPaw deleted the clientmsg-throw branch November 2, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants