commit
7a3171ce8d
|
|
@ -44,8 +44,9 @@ public partial class AgentService
|
|||
[SharpCache(10)]
|
||||
public async Task<Agent> GetAgent(string id)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(id))
|
||||
if (string.IsNullOrWhiteSpace(id) || id == Guid.Empty.ToString())
|
||||
{
|
||||
_logger.LogWarning($"Can't find agent {id}, AgentId is empty.");
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue