Skip to content

Commit

Permalink
- Fixed a crash on opening file
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjordan committed Dec 16, 2018
1 parent 1fd9224 commit e0d0254
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Codist/Helpers/CodeAnalysisHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public static void OpenFile(this EnvDTE.DTE dte, string file, int line, int colu
try {
((EnvDTE.TextSelection)dte.ActiveDocument.Selection).MoveToLineAndOffset(line, column);
}
catch (NullReferenceException) { /* ignore */ }
catch (ArgumentException) {
// ignore incorrect offset
}
Expand Down

0 comments on commit e0d0254

Please sign in to comment.