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.
<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) at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.FireEvent(ToolbarEventIds id, EventArgs e) at Infragistics.Win.UltraWinToolbars.ToolBase.OnToolClick() at Infragistics.Win.UltraWinToolbars.ToolMenuItem.OnClick() at Infragistics.Win.UltraWinToolbars.PopupMenuItemUIElement.DoClickProcessing(MouseEventArgs e) at Infragistics.Win.UltraWinToolbars.PopupMenuItemUIElement.OnMouseUp(MouseEventArgs e) at Infragistics.Win.TextUIElementBase.OnMouseUp(MouseEventArgs e) at Infragistics.Win.ControlUIElementBase.ProcessMouseUpHelper(Object sender, MouseEventArgs e) at Infragistics.Win.ControlUIElementBase.ProcessMouseUp(Object sender, MouseEventArgs e) at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e) at Infragistics.Win.UltraWinToolbars.PopupControlBase.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)]]></StackTrace> </Exception> <Environment> <ProductName>Trados Studio</ProductName> <ProductVersion>Studio16</ProductVersion> <EntryAssemblyFileVersion>16.2.10.9305</EntryAssemblyFileVersion> <OperatingSystem>Microsoft Windows 11 Home</OperatingSystem> <ServicePack>NULL</ServicePack> <OperatingSystemLanguage>1033</OperatingSystemLanguage> <CodePage>1252</CodePage> <LoggedOnUser>_</LoggedOnUser> <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork> <ComputerName>_</ComputerName> <ConnectedToNetwork>True</ConnectedToNetwork> <PhysicalMemory>6286016 MB</PhysicalMemory> </Environment> </SDLErrorDetails>
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]
