Edit Comment comment fails with dreaded "Object reference not set to an instance of an object." error

After editing an existing comment this error comes up after clicking [OK] in the Edit Comment dialog. The changes to the comment aren't saved. They are still there though while the "Edit Target Comments" dialog is open (i.e. I can click on [Edit] and see my changes in the Edit Comment dialog).

<SDLErrorDetails time="19.01.2022 20:10:16">
  <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.TranslationStudio.Editor</Source>
    <HResult>-2147467261</HResult>
    <StackTrace><![CDATA[   at Sdl.TranslationStudio.Editor.Comments.EditCommentsDlg.buttonUpdate_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.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.9.9198</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 10 Home</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1033</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>16670208 MB</PhysicalMemory>
  </Environment>
</SDLErrorDetails>

This happens since the upgrade to Studio 2021 and it concerns target comments added by myself. I haven't tried this with other comments.

My current workaround is

  1. copy the comment's text to the clipboard
  2. delete the comment
  3. create a new comment, paste in the text, edit it and save ([OK])

Of course, it is cumbersome and I would appreciate if this would work again as it should.

emoji
Parents
  • HI 

    First, if you've updated Trados Studio, it is necessary to also update MultiTerm if you have it installed. Open MultiTerm and go to Help > Check for Updates.

    Next, when a problem occurs after an update, the first thing to try is a Windows Repair of Studio (and/or MultiTerm components depending what the problem is). This will repair links between the two pieces of software by checking for and replacing anything that is missing from their setup, for example.

    Here is how:

    1. Close all SDL applications.
    2. Open the Control Panel:
      • Windows Vista/7: Start > Control Panel > Programs > Programs and Features.
      • Windows 8: Right-click on the screen at bottom-left corner and choose Control Panel > Uninstall a Program.
      • Windows 10: Right-click on Start > Control Panel > Select View by: Small Icons > Programs and Features
      • - or type 'Control Panel' in the search line on your bottom Windows toolbar.
    3. Click/highlight the relevant SDL product from the list (e.g. SDL Trados Studio 2021 etc) and click 'Uninstall/Change' either on the top toolbar or on the right-click dropdown menu (or just 'Repair' for MultiTerm), then select > Yes > Repair. Allow it to run. This will take longer for Studio than for the 3 main components of MultiTerm. Do NOT repair 'Remove suite of products' entries. These are only for uninstalling.
    4. Restart Studio/MultiTerm.

    There are further options here:

    Repairing your installation of Trados Studio

    Let us know if any of the above solves your problem,  or not.

    All the best,

    Ali Slight smile

    emoji
Reply
  • HI 

    First, if you've updated Trados Studio, it is necessary to also update MultiTerm if you have it installed. Open MultiTerm and go to Help > Check for Updates.

    Next, when a problem occurs after an update, the first thing to try is a Windows Repair of Studio (and/or MultiTerm components depending what the problem is). This will repair links between the two pieces of software by checking for and replacing anything that is missing from their setup, for example.

    Here is how:

    1. Close all SDL applications.
    2. Open the Control Panel:
      • Windows Vista/7: Start > Control Panel > Programs > Programs and Features.
      • Windows 8: Right-click on the screen at bottom-left corner and choose Control Panel > Uninstall a Program.
      • Windows 10: Right-click on Start > Control Panel > Select View by: Small Icons > Programs and Features
      • - or type 'Control Panel' in the search line on your bottom Windows toolbar.
    3. Click/highlight the relevant SDL product from the list (e.g. SDL Trados Studio 2021 etc) and click 'Uninstall/Change' either on the top toolbar or on the right-click dropdown menu (or just 'Repair' for MultiTerm), then select > Yes > Repair. Allow it to run. This will take longer for Studio than for the 3 main components of MultiTerm. Do NOT repair 'Remove suite of products' entries. These are only for uninstalling.
    4. Restart Studio/MultiTerm.

    There are further options here:

    Repairing your installation of Trados Studio

    Let us know if any of the above solves your problem,  or not.

    All the best,

    Ali Slight smile

    emoji
Children