[BUG] CosmosSyncScripts null pointer exception in azure-cosmos 3.3.1 #6281
Labels
Client
This issue points to a problem in the data-plane of the library.
cosmos:v4-item
Indicates this feature will be shipped as part of V4 release train
Cosmos
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Service Attention
Workflow: This issue is responsible by Azure service team.
Milestone
Describe the bug
When using
CosmosSyncClient
to execute a stored procedure, I'm receiving a null pointer exception from the SDK.It looks like the conversion from the underlying asynchronous response to the synchronous response should be doing a null check on
storedProcedure()
but it isn't.azure-sdk-for-java/sdk/cosmos/microsoft-azure-cosmos/src/main/java/com/azure/data/cosmos/sync/CosmosSyncScripts.java
Line 298 in a044649
CosmosStoredProcedureResponse
clearly documents thatstoredProcedure()
can benull
:azure-sdk-for-java/sdk/cosmos/microsoft-azure-cosmos/src/main/java/com/azure/data/cosmos/CosmosStoredProcedureResponse.java
Line 37 in a044649
The text was updated successfully, but these errors were encountered: