Browse Source

DateTimeParser: fixed exception when Format is null

pull/1645/head
brianlagunas_cp 15 years ago
parent
commit
5e687f11ef
  1. 2
      ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/DateTimeUpDown/Implementation/DateTimeParser.cs

2
ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/DateTimeUpDown/Implementation/DateTimeParser.cs

@ -39,7 +39,7 @@ namespace Microsoft.Windows.Controls
bool success = false;
result = currentDate;
if (string.IsNullOrEmpty(value))
if (string.IsNullOrEmpty(value) || string.IsNullOrEmpty(Format))
return false;
var dateTimeString = ResolveDateTimeString(value, currentDate);

Loading…
Cancel
Save