Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zodiacon committed May 23, 2017
1 parent 62f56f9 commit f7b4047
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions WinDbgX/Models/UIManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,10 @@ public void OnImportsSatisfied() {

private void SetRecentMenuItems() {
_recentExecutables = AppManager.Settings.RecentExecutables;
if (_recentExecutables == null)
return;
if (_recentExecutables == null) {
_recentExecutables = new ObservableCollection<Executable>();
return;
}

_recentExecutables.Select(executable => new MenuItemViewModel {
Text = $"{executable.Path} {executable.Arguments}",
Expand Down

0 comments on commit f7b4047

Please sign in to comment.