-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.CosmosService AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.cosmos:v4-itemIndicates this feature will be shipped as part of V4 release trainIndicates this feature will be shipped as part of V4 release traincustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Milestone
Description
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.
Line 298 in a044649
return new CosmosSyncStoredProcedureResponse(response, getStoredProcedure(response.storedProcedure().id())); -
CosmosStoredProcedureResponseclearly documents thatstoredProcedure()can benull:
Line 37 in a044649
* @return the stored procedure object or null
Metadata
Metadata
Assignees
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.CosmosService AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.cosmos:v4-itemIndicates this feature will be shipped as part of V4 release trainIndicates this feature will be shipped as part of V4 release traincustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.