summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs')
-rw-r--r--win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs b/win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs
index 81e12ddc8..31da7ed74 100644
--- a/win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs
+++ b/win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs
@@ -42,6 +42,11 @@ namespace HandBrakeWPF.Converters
// Paramater is a boolean which inverts the output.
var param = System.Convert.ToBoolean(parameter, CultureInfo.InvariantCulture);
+ if (value == null)
+ {
+ return Visibility.Collapsed;
+ }
+
if (value is Boolean)
{
if (param)