We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2343c81 commit 0e98a44Copy full SHA for 0e98a44
1 file changed
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlCommand.Encryption.cs
@@ -1293,7 +1293,7 @@ private SqlDataReader TryFetchInputParameterEncryptionInfo(
1293
// not present as the rpcName, as is the case with non-_batchRPCMode. So
1294
// input parameters start at parameters[1]. parameters[0] is the actual
1295
// T-SQL Statement. rpcName is sp_executesql.
1296
- if (_RPCList[i].systemParams.Length > 1)
+ if (_RPCList[i].systemParams != null && _RPCList[i].systemParams.Length > 1)
1297
{
1298
_RPCList[i].needsFetchParameterEncryptionMetadata = true;
1299
0 commit comments