From: sr55 Date: Mon, 27 Feb 2012 19:48:11 +0000 (+0000) Subject: WinGui: Fix a potential crash in the plist importer X-Git-Tag: 0.9.6~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3f957985346930ea067b70155b9c353e961cc2a;p=handbrake WinGui: Fix a potential crash in the plist importer git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4465 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/PlistUtility.cs b/win/CS/HandBrake.ApplicationServices/Utilities/PlistUtility.cs index 622aad4f4..91d4d5357 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/PlistUtility.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/PlistUtility.cs @@ -277,7 +277,10 @@ namespace HandBrake.ApplicationServices.Utilities parsed.Grayscale = value == "1"; break; case "VideoQualitySlider": - parsed.Quality = double.Parse(value); + if (!string.IsNullOrEmpty(value)) + { + parsed.Quality = double.Parse(value); + } break; case "VideoQualityType": // The Type of Quality Mode used qualityMode = value;