mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-27 13:33:13 +00:00
events
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user