diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/Helpers/TreeViewHelper.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Helpers/TreeViewHelper.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Helpers/TreeViewHelper.cs b/win/CS/HandBrakeWPF/Helpers/TreeViewHelper.cs index 99b458859..4ca799665 100644 --- a/win/CS/HandBrakeWPF/Helpers/TreeViewHelper.cs +++ b/win/CS/HandBrakeWPF/Helpers/TreeViewHelper.cs @@ -62,6 +62,11 @@ namespace HandBrakeWPF.Helpers private static bool SelectItem(object o, TreeViewItem parentItem) { + if (parentItem == null) + { + return false; + } + bool found = false; foreach (var item in parentItem.Items) { |