From 1cd6ba203d16c32174d4a6381b790925e97f7ce5 Mon Sep 17 00:00:00 2001 From: CWX Date: Sun, 19 Jan 2025 14:30:16 +0000 Subject: [PATCH] fix warning --- Core/Controllers/NoteController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Controllers/NoteController.cs b/Core/Controllers/NoteController.cs index bc4d3f5a..04d96f0b 100644 --- a/Core/Controllers/NoteController.cs +++ b/Core/Controllers/NoteController.cs @@ -53,7 +53,7 @@ public class NoteController( NoteActionData body, string sessionId) { - pmcData.Notes.DataNotes.RemoveAt(body.Index.Value); + pmcData.Notes?.DataNotes?.RemoveAt(body.Index!.Value); return _eventOutputHolder.GetOutput(sessionId); }