-
Notifications
You must be signed in to change notification settings - Fork 754
Poller tests fix #960
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
Poller tests fix #960
Changes from 4 commits
c1d244e
c9e02a0
11f3a45
67333f9
60367a5
9fe9ea7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ public ByteArraySegment(ByteArraySegment otherSegment, int offset) | |
/// <summary> | ||
/// Get the number of bytes within the buffer that is past the Offset (ie, buffer-length minus offset). | ||
/// </summary> | ||
public int Size => m_innerBuffer.Length - Offset; | ||
public int Size => m_innerBuffer == null ? 0 : m_innerBuffer.Length - Offset; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure about this change. Code shouldn't be using an initialised version of this struct. The buffer should always be non-null. If it's null here, then there's a bug somewhere else. That is the bug that should probably be identified and fixed. At least that's my working assumption. |
||
|
||
/// <summary> | ||
/// Add the given value to the offset. | ||
|
Uh oh!
There was an error while loading. Please reload this page.