NullReferenceException when adding LocalTermbases to project

Anybody seen this error before? I'm trying to write a Trados Studio 2014 plugin that allows a user to add their local TMs and TBs to a project imported from WorldServer. I got it so that I can update the project with these resources, but after I run the plugin and try to open a file in the Editor this error keeps popping up. Obviously something isn't being initialized right, but I can't tell what! Any hints would be great.

Object reference not set to an instance of an object.
System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
at Sdl.TranslationStudio.Editor.Terminology.TermbaseProvider.UpdateTermbasesContextFilters()
at Sdl.TranslationStudio.Editor.Terminology.TermbaseProvider.SetTermbases(IList`1 termbases)
at Sdl.TranslationStudio.Editor.Terminology.TermAccessProvider.RegisterDocument(ITranslatableDocument document)
at Sdl.TranslationStudio.Editor.Terminology.TermAccessProvider.editorService_DocumentOpened(IDocument document)
at Sdl.TranslationStudio.Api.Editor.DocumentEventHandler.Invoke(IDocument document)
at Sdl.TranslationStudio.Editor.EditorService.OnDocumentOpened(IDocument document)
at Sdl.TranslationStudio.Editor.EditorService.document_Loaded(IDocument document)
at Sdl.TranslationStudio.Api.Editor.AbstractInternalDocument.OnLoaded()
at Sdl.TranslationStudio.Editor.TranslationEditor.TranslatableDocument.OnLoaded()
at Sdl.TranslationStudio.Api.Editor.AbstractInternalDocument.AfterLoad(IJob job)

*****EDIT*****

Turns out this is the same problem as is mentioned here: https://community.sdl.com/phase_2_groups/sdl_openexchange_developers/f/57/p/947/10251.aspx#10251. Basically, the Name property in the project file must exactly match the filename of your termbase, just without the extension. I had changed the filename but not that that property, so Trados Studio couldn't find my TB.

Thanks,

Ryan L.