Skip to content

Commit

Permalink
null check when launching history viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
yysun committed Feb 11, 2013
1 parent 4a48dc0 commit 8d8d056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BasicSccProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ private void ShowHistoryWindow(object sender, EventArgs e)
}
}

if (File.Exists(tmpPath))
if (File.Exists(tmpPath) && sccService.CurrentTracker != null)
{
Process.Start(tmpPath, "\"" + sccService.CurrentTracker.GitWorkingDirectory + "\"");
}
Expand Down

0 comments on commit 8d8d056

Please sign in to comment.