We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a8f648 commit c375315Copy full SHA for c375315
src/Libraries/SmartStore.Services/Tasks/CronExpression.cs
@@ -59,14 +59,16 @@ public static string GetFriendlyDescription(string expression)
59
Use24HourTimeFormat = Thread.CurrentThread.CurrentUICulture.DateTimeFormat.AMDesignator.IsEmpty()
60
};
61
62
- try
63
- {
64
- return ExpressionDescriptor.GetDescription(expression, options);
65
- }
66
- catch
+ if (expression.HasValue())
67
{
68
- return null;
+ try
+ {
+ return ExpressionDescriptor.GetDescription(expression, options);
+ }
+ catch { }
69
}
70
+
71
+ return "?";
72
73
74
0 commit comments