This commit is contained in:
2024-06-06 15:25:51 +08:00
parent 46023f56c1
commit 9e177b69f7
3 changed files with 7 additions and 7 deletions

View File

@@ -1062,7 +1062,7 @@ namespace Tnb.ProductionMgr
throw new ArgumentNullException(nameof(input.TaskIds));
}
// if (input.Behavior.IsNullOrWhiteSpace())
if (input.Behavior!=null && !input.Behavior.IsEmpty())
if (input.Behavior==null || input.Behavior.IsEmpty())
{
throw new ArgumentException($"{nameof(input.Behavior)} not be null or empty");
}