"Object reference not set to an instance of an object" when adding segment comment

Hi, I'm trying to add comments to some segments in my current project. However, whenever I try, I get an "Object reference not set to an instance of an object" error.

I can't say I understand the stack trace, so I was hoping somebody could help me decipher this to find a solution.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<SDLErrorDetails time="2023-11-02 14:21:40">
<ErrorMessage>Object reference not set to an instance of an object.</ErrorMessage>
<Exception>
<Type>System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
<HelpLink />
<Source>Sdl.TranslationStudioAutomation.IntegrationApi</Source>
<HResult>-2147467261</HResult>
<StackTrace><![CDATA[ at Sdl.TranslationStudioAutomation.IntegrationApi.Document.InternalDocument_CommentAdded(Object sender, CommentNodeEventArgs e)
at Sdl.TranslationStudio.Editor.TranslationEditor.TranslatableDocument.<LoadCommentSupport>b__79_0(Object sender, CommentNodeEventArgs e)
at Sdl.TranslationStudio.Editor.TranslationEditor.CommentSupport.AddRangeComment(ContentRange range, ICommentProperties comments)
at Sdl.TranslationStudio.Editor.TranslationEditor.CommentSupport.AddSegmentComment(ISegmentContainerNode segmentContainerNode, ICommentProperties comment)
at Sdl.TranslationStudio.Editor.TranslationEditor.TranslatableDocument.AddSegmentComment(ISegmentContainerNode segmentContainerNode, ICommentProperties comment)
at Sdl.TranslationStudio.Editor.Comments.AddCommentDlg.AddComment()
at Sdl.TranslationStudio.Editor.Comments.Actions.AddCommentAction.Execute()
at Sdl.Desktop.Platform.Implementation.CommandBars.SimpleActionExecuter.Execute(ActionData actionData)
at Sdl.Desktop.Platform.Implementation.ResourceLoggingInternalCommandExecuter`1.ExecuteWithResourceLogging(TCommandData commandData, String message)
at Sdl.Desktop.Platform.Implementation.CommandBars.ActionService.ExecuteAction(IAction action, ActionOrigin origin, Boolean allowToggle)
at Sdl.Desktop.Platform.WinForms.IgCommandBarAction.Execute()
at Sdl.Desktop.Platform.WinForms.IgCommandBarAction._lazyButtonTool_ToolClick(Object sender, ToolClickEventArgs e)
at Infragistics.Win.UltraWinToolbars.ToolBase.OnToolClick(ToolClickEventArgs e)
at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.OnToolClick(ToolClickEventArgs e)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


Appreciate any help!
Thank you



Remove some info in stack trace
[edited by: Philip Sundt at 1:31 PM (GMT 0) on 2 Nov 2023]
emoji