Error when switching from subtitling to other project

I get an "Object reference not set to ..." error if I do the following:

  1. Open a vtt file with subtitling preview for translation.
  2. Close the file.
  3. Switch to another project.
  4. Open a (non-subtitling) file for translation. This is when the error pops up.

I tried a few things like pinning/unpinning the subtitling preview window (It's on a second screen, outside the main Studio window), closing it before closing the vtt file, but it does not solve the problem. Restarting Studio clears it.

Daniel

Here's the stack trace:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<SDLErrorDetails time="14-Aug-19 08:22:18">
<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>StudioSubtitling</Source>
<HResult>-2147467261</HResult>
<StackTrace><![CDATA[ at StudioSubtitling.Services.TimelineMarkerService.GetTimelineMarkers(IEnumerable`1 segmentPairs, ProjectFile activeFile, DocumentFileInfo mergedFileInfo)
at StudioSubtitling.ViewModel.MediaElementViewModel.UpdateTimelineMarkers(DocumentFileInfo mergedFileInfo)
at StudioSubtitling.ViewModel.MediaElementViewModel.SetActiveFile(ProjectFile projectFile)
at StudioSubtitling.ViewModel.MediaElementViewModel.SetActiveDocument(Document document)
at StudioSubtitling.ViewModel.MediaElementViewModel.EditorController_ActiveDocumentChanged(Object sender, DocumentEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at Sdl.Desktop.Platform.Extensions.EventsExtensions.Raise[T](EventHandler`1 e, Object sender, T eventArgs)
at Sdl.TranslationStudioAutomation.IntegrationApi.EditorController.OnActiveDocumentChanged(IDocument document)
at Sdl.TranslationStudio.Api.Editor.DocumentEventHandler.Invoke(IDocument document)
at Sdl.TranslationStudio.Editor.EditorService.set_ActiveDocument(IDocument value)
at Sdl.TranslationStudio.Editor.EditorView.OnActiveViewPartChanged(IViewPartReference viewPartReference)
at Sdl.Desktop.Platform.AbstractViewWithParts.Control_ActiveViewPartChanged(IViewWithParts view, IViewPartReference viewPartReference)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX