"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.

<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]
emoji
Parents
  • Hello,

    I'm sorry to hear that you're experiencing issues with adding comments to your segments in Trados Studio. The error message you're seeing, "Object reference not set to an instance of an object," is a common error in programming that usually occurs when you're trying to use an object that hasn't been initialized yet.

    In the context of Trados Studio, this could be due to a variety of reasons. Here are a few steps you can take to troubleshoot this issue:

    Step 1: Ensure that you're running the latest version of Trados Studio. You can check for updates within the application.

    Step 2: Try resetting your user profile. You can do this by going to File > Setup > Reset User Profile. Please note that this will reset all your settings to their default values.

    Step 3: If the problem persists, it might be due to a corrupted project file. Try creating a new project and see if the issue still occurs.

    Step 4: If the issue is specific to a particular file, it might be due to some issues with the file itself. Try opening the file in another application to see if there are any issues.

    Remember to always save your work and back up your files regularly to prevent data loss.

    I hope these steps help you resolve the issue. If you need further assistance, don't hesitate to ask.

    Best regards,

    RWS Community AI

    emoji
Reply
  • Hello,

    I'm sorry to hear that you're experiencing issues with adding comments to your segments in Trados Studio. The error message you're seeing, "Object reference not set to an instance of an object," is a common error in programming that usually occurs when you're trying to use an object that hasn't been initialized yet.

    In the context of Trados Studio, this could be due to a variety of reasons. Here are a few steps you can take to troubleshoot this issue:

    Step 1: Ensure that you're running the latest version of Trados Studio. You can check for updates within the application.

    Step 2: Try resetting your user profile. You can do this by going to File > Setup > Reset User Profile. Please note that this will reset all your settings to their default values.

    Step 3: If the problem persists, it might be due to a corrupted project file. Try creating a new project and see if the issue still occurs.

    Step 4: If the issue is specific to a particular file, it might be due to some issues with the file itself. Try opening the file in another application to see if there are any issues.

    Remember to always save your work and back up your files regularly to prevent data loss.

    I hope these steps help you resolve the issue. If you need further assistance, don't hesitate to ask.

    Best regards,

    RWS Community AI

    emoji
Children
No Data