2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 13:33:13 +00:00
This commit is contained in:
2023-11-07 16:31:23 +03:00
parent d6e223384c
commit 0e865406eb
9 changed files with 32 additions and 25 deletions

View File

@ -375,8 +375,6 @@ public static class Warehouse
public static async AsyncReply<IResource[]> Query(string path)
{
var rt = new AsyncReply<IResource[]>();
var p = path.Trim().Split('/');
IResource resource;
@ -512,7 +510,7 @@ public static class Warehouse
var res = await Query(path);
if (res.Length == 0)
if (res == null || res.Length == 0)
return default(T);
else
return (T)res.First();