File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,9 @@ private ConnectionStatus _multiGetUsingDescriptor(Action<MultiGetDescriptor> mul
86
86
multiGetSelector ( descriptor ) ;
87
87
var data = @"{ ""docs"" : [" ;
88
88
var objects = new List < string > ( ) ;
89
+
90
+ descriptor . _GetOperations . ThrowIfEmpty ( "MultiGetFull called but no get operations were specified" ) ;
91
+
89
92
foreach ( var g in descriptor . _GetOperations )
90
93
{
91
94
string objectJson = "{" ;
@@ -130,6 +133,8 @@ private ConnectionStatus _multiGetUsingDescriptor(Action<MultiGetDescriptor> mul
130
133
private IEnumerable < T > MultiGet < T > ( IEnumerable < string > ids , string path )
131
134
where T : class
132
135
{
136
+ ids . ThrowIfEmpty ( "ids" ) ;
137
+
133
138
var data = @"{{ ""ids"": {0} }}" . F ( this . Serialize ( ids ) ) ;
134
139
var response = this . Connection . PostSync ( path + "_mget" , data ) ;
135
140
You can’t perform that action at this time.
0 commit comments