"Object Reference not set to an instance of an object" error when creating new projects based on an existing one

Hi,

so, there must be a million posts relating to receiving the error above, but I haven't seen one for this specific situation.

OS: Win10 Pro, version 1607, build 14393.1066

Trados Studio 2017 Professional, 14.0.5889.5

I do occasionally use CCleaner (I have seen this to be sometimes a problem)

Steps to repro:

  • Begin creating a new project
  • Select any existing project that the new one should be based on
  • Reach the language selection and pick the languages
  • Hit next
  • The error dialog appears

The log is as follows:

<SDLErrorDetails time="5/9/2017 10:03:40 AM">
  <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.ProjectManagement</Source>
    <HResult>-2147467261</HResult>
    <StackTrace><![CDATA[   at Sdl.TranslationStudio.ProjectManagement.ProjectWizard.ProjectLanguagesWizardPage.CopyAllLanguageDirectionSettingsFromTemplate()
   at Sdl.TranslationStudio.ProjectManagement.ProjectWizard.ProjectLanguagesWizardPage.UpdateProjectLanguages(Boolean validate)
   at Sdl.TranslationStudio.ProjectManagement.ProjectWizard.ProjectLanguagesWizardPage.OnNext()
   at Sdl.Desktop.Platform.Wizard.AbstractWizard`1.Next()
   at Sdl.Desktop.Platform.Wizard.AbstractWizard`1._form_Next(Object sender, CancelEventArgs e)
   at Sdl.Desktop.Platform.WinForms.WizardForm._nextButton_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.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>SDL Trados Studio</ProductName>
    <ProductVersion>14.0.0.0</ProductVersion>
    <EntryAssemblyFileVersion>14.0.5889.5</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 10 Pro</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1033</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>DESKTOP-BPQJFEG\sbellezza</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>DESKTOP-BPQJFEG</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>8266336 MB</PhysicalMemory>
  </Environment>
</SDLErrorDetails>

Any suggestion?

  • Hi Stefano,

    I've just checked and I can also reproduce this behaviour.

    It happens when one clicks 'next' on the language selection page even if you don't select an extra language to those that are already in place as in the project the new project is based on.
    I uninstalled CCleaner just in case you're right about it. The problem still occurred.
    I remove CCleaner once I've used it then install the newest version next time.

    All the best,
    Ali

    PS Stacktrace:

    <?xml version="1.0"?>
    <SDLErrorDetails time="09/05/2017 16:39:45">
    <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.ProjectManagement</Source>
    <HResult>-2147467261</HResult>
    <StackTrace>
    <![CDATA[
    at Sdl.TranslationStudio.ProjectManagement.ProjectWizard.ProjectLanguagesWizardPage.CopyAllLanguageDirectionSettingsFromTemplate()
    at Sdl.TranslationStudio.ProjectManagement.ProjectWizard.ProjectLanguagesWizardPage.UpdateProjectLanguages(Boolean validate)
    at Sdl.TranslationStudio.ProjectManagement.ProjectWizard.ProjectLanguagesWizardPage.OnNext()
    at Sdl.Desktop.Platform.Wizard.AbstractWizard`1.Next()
    at Sdl.Desktop.Platform.Wizard.AbstractWizard`1._form_Next(Object sender, CancelEventArgs e)
    at Sdl.Desktop.Platform.WinForms.WizardForm._nextButton_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.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>SDL Trados Studio</ProductName>
    <ProductVersion>14.0.0.0</ProductVersion>
    <EntryAssemblyFileVersion>14.0.5889.5</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 10 Pro</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>2057</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>FUJITSUP5925\Alison</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>FUJITSUP5925</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>8091948 MB</PhysicalMemory>
    </Environment>
    </SDLErrorDetails>

  • Hi Stefano and Alison,

    Please follow the below resolution from the article: gateway.sdl.com/.../communityknowledge

    Solution:

    Create a template of the project the new project is supposed to be based on and use this.

    1. In the Projects view right click on the projects name, you wish to base your new project on and select Create Project Template

    2.After having saved the project template create a new project via

    File > New > Project

    3. In the New Project Wizard select Create a project based on project template

     

    4.Choose the template you have saved in step 2, either from the drop down menu, or by clicking on Browse and selecting the template

    5.Click Next

    6.Proceed normally from here on.

     

    Thanks

     

    Roman

  • Hi Roman,

    Yes, that works. It bypasses the problem. Very logical workaround.

    I see, however, that this change in functionality is not by design. In the gateway article it is stated:

    "This is a known issue that was introduced with Studio 2017 CU5 and is already being worked on."

    Just so others know something is being done about this.

    Thanks!
    Ali :)