Skip to content

Commit 98c7e71

Browse files
Potential fix for pull request finding 'Dereferenced variable may be null'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent 695074d commit 98c7e71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DynamoCore/Core/PulseMaker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ protected virtual void Dispose(bool disposing)
156156
lock (stateMutex)
157157
{
158158
// Stop the timer before disposing
159-
if (TimerPeriod > 0)
159+
if (internalTimer != null && TimerPeriod > 0)
160160
{
161161
TimerPeriod = 0;
162162
evaluationRequestPending = false;

0 commit comments

Comments
 (0)