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
8686 multiGetSelector ( descriptor ) ;
8787 var data = @"{ ""docs"" : [" ;
8888 var objects = new List < string > ( ) ;
89+
90+ descriptor . _GetOperations . ThrowIfEmpty ( "MultiGetFull called but no get operations were specified" ) ;
91+
8992 foreach ( var g in descriptor . _GetOperations )
9093 {
9194 string objectJson = "{" ;
@@ -130,6 +133,8 @@ private ConnectionStatus _multiGetUsingDescriptor(Action<MultiGetDescriptor> mul
130133 private IEnumerable < T > MultiGet < T > ( IEnumerable < string > ids , string path )
131134 where T : class
132135 {
136+ ids . ThrowIfEmpty ( "ids" ) ;
137+
133138 var data = @"{{ ""ids"": {0} }}" . F ( this . Serialize ( ids ) ) ;
134139 var response = this . Connection . PostSync ( path + "_mget" , data ) ;
135140
You can’t perform that action at this time.
0 commit comments