In developing a plug-in for Trados Studio, encountering the error "Object reference not set to an instance of an object" upon exit, which references Sdl.TranslationStudio.Editor.TranslationMemory.TranslationProvider.DetachEventListeners(). What might be causing such an error?
The full call stack is as follows.
<StackTrace><
at Sdl.TranslationStudio.Editor.EditorService.CloseAllDocuments()
at Sdl.TranslationStudio.Editor.EditorService.Window_Closing(IStudioWindow window, CancelEventArgs e)
at Sdl.Desktop.Platform.StudioWindowCancelEventHandler.Invoke(IStudioWindow window, CancelEventArgs cancel)
at Sdl.Desktop.Platform.Implementation.StudioWindow.OnClosing()
at Sdl.Desktop.Platform.Implementation.StudioWindow._form_Closing(Object sender, CancelEventArgs e)
at System.Windows.Forms.Form.OnClosing(CancelEventArgs e)
at System.Windows.Forms.Form.WmClose(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at Sdl.Desktop.Platform.WinForms.StudioWindowForm.WndProc(Message& message)
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>