Browse Source

DateTimeParser: fixed exception when Format is null

import/raw
brianlagunas_cp 16 years ago
parent
commit
228a41a7ee
  1. 2
      Main/Source/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/DateTimeUpDown/Implementation/DateTimeParser.cs

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

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

Loading…
Cancel
Save