Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt

Hello,

I am having a problem translating a project.

When ever i come across 1 m or something similar with numbers i get the error above mentioned.

<SDLErrorDetails time="20.9.2022. 22:05:02">
  <ErrorMessage>Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.</ErrorMessage>
  <Exception>
    <Type>System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
    <HelpLink />
    <Source>Sdl.Core.Globalization</Source>
    <HResult>-2147467261</HResult>
    <StackTrace><![CDATA[   bei Sdl.Core.Globalization.UnitMetadata.UnitMetadataRegistry.TryHierachy[T](Func`2 f, String languageCode)
   bei Sdl.Core.Globalization.UnitMetadata.UnitMetadataRegistry.GetPreferredLabelValueSet(String unitKey, String languageCode)
   bei Sdl.LanguagePlatform.Core.Tokenization.MeasureToken.Localize(CultureInfo culture, AutoLocalizationSettings autoLocalizationSettings, ILocalizableToken originalMemoryToken, Boolean adjustCasing)
   bei Sdl.LanguagePlatform.Core.Tokenization.MeasureToken.Localize(CultureInfo culture, AutoLocalizationSettings autoLocalizationSettings)
   bei Sdl.TranslationStudio.Editor.TranslationEditor.Intellisense.SuggestionData..ctor(DocumentToken documentToken, CultureInfo culture, AutoLocalizationSettings localizationSettings)
   bei Sdl.TranslationStudio.Editor.TranslationEditor.Intellisense.TagFormattingDataProvider.ProcessDocumentTokens(SideBySideEditor editor, IList`1 suggestionData)
   bei Sdl.TranslationStudio.Editor.TranslationEditor.Intellisense.TagFormattingDataProvider.GetSuggestionData(EditingContext context)
   bei Sdl.TranslationStudio.Editor.TranslationEditor.Actions.LaunchTagFormattingWindowAction.GetSuggestionData(SideBySideEditor editor)
   bei Sdl.TranslationStudio.Editor.TranslationEditor.Actions.LaunchTagFormattingWindowAction.IsActionEnabled()
   bei Sdl.TranslationStudio.Api.Editor.AbstractActiveDocumentAction.UpdateAction()
   bei Sdl.TranslationStudio.Api.Editor.AbstractSelectionDependentAction.OnSelectionChanged(IDocumentEditingView view)
   bei Sdl.TranslationStudio.Api.Editor.DocumentEditingViewEventHandler.Invoke(IDocumentEditingView view)
   bei Sdl.TranslationStudio.Editor.TranslationEditor.SelectionChangedDelayedEventHandler.<>c__DisplayClass27_0.<FireEvent>b__0()
   bei System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   bei System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   bei System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   bei System.Windows.Forms.Control.InvokeMarshaledCallbacks()]]></StackTrace>
  </Exception>
  <Environment>
    <ProductName>SDL Trados Studio</ProductName>
    <ProductVersion>15.0.0.0</ProductVersion>
    <EntryAssemblyFileVersion>15.2.8.3007</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 10 Home</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1050</OperatingSystemLanguage>
    <CodePage>1250</CodePage>
    <LoggedOnUser>NOVIDESKTOP\Korisnik</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>NOVIDESKTOP</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>16691896 MB</PhysicalMemory>
  </Environment>
</SDLErrorDetails>

Tried some workarounds but no help so any help is appreciate.

Josip!



Tidied code.
[edited by: Paul at 11:13 PM (GMT 1) on 30 Sep 2022]
emoji