Skip to content

GSF.Core: Fix NullReferenceException in initial file enumeration#550

Merged
clackner-gpa merged 1 commit into
masterfrom
fix-file-processor-enumeration
Jun 11, 2026
Merged

GSF.Core: Fix NullReferenceException in initial file enumeration#550
clackner-gpa merged 1 commit into
masterfrom
fix-file-processor-enumeration

Conversation

@StephenCWills

Copy link
Copy Markdown
Member

Just a basic logic error. Interlocked.CompareExchange() returns the value before the exchange, not after. If the return value is null, we know the exchange succeeded, so we can use the new token. Otherwise, the exchange did not succeed and we should use the return value.

@clackner-gpa clackner-gpa enabled auto-merge June 11, 2026 15:01
@clackner-gpa clackner-gpa merged commit 4e99f73 into master Jun 11, 2026
2 of 3 checks passed
@clackner-gpa clackner-gpa deleted the fix-file-processor-enumeration branch June 11, 2026 15:03
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