Skip to content

Commit

Permalink
- Fixed a crash in debugging release
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjordan committed Dec 20, 2018
1 parent 80053ac commit 538c5b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Codist/NaviBar/NaviBarFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void TextViewCreated(IWpfTextView textView) {

static void AssociateFileCodeModelOverrider() {
Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread();
var model = CodistPackage.DTE2.ActiveDocument?.ProjectItem.FileCodeModel; // the active document can be null
var model = CodistPackage.DTE2.ActiveDocument?.ProjectItem?.FileCodeModel; // the active document can be null
if (model == null) {
return;
}
Expand Down

0 comments on commit 538c5b6

Please sign in to comment.