Skip to content

Commit b3dbadf

Browse files
committed
Fix null reference warnings in TickCounterApiService
1 parent 3e0750a commit b3dbadf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Pomodoro/Community.PowerToys.Run.Plugin.Pomodoro/Services/TickCounterApiService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ public Task<bool> StopTimerAsync(string timerId)
151151
{
152152
return Task.FromResult<TimerStatus?>(new TimerStatus
153153
{
154-
Id = timer.Id,
155-
Title = timer.Title,
154+
Id = timer.Id ?? string.Empty,
155+
Title = timer.Title ?? string.Empty,
156156
TotalSeconds = timer.TotalSeconds,
157157
RemainingSeconds = timer.RemainingSeconds,
158158
IsPaused = timer.IsPaused,

0 commit comments

Comments
 (0)