-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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.CosmosbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.cosmos:v4-itemIndicates this feature will be shipped as part of V4 release trainIndicates this feature will be shipped as part of V4 release train
Description
PartitionKey.None.toString() throws an exception:
Java: 11
Jackson: 2.10.1
azure-cosmos 3.6.0
@Test
void testPartitionKeyNoneToString() {
com.azure.data.cosmos.PartitionKey.None.toString();
}
The exception happened in the following code:
Line 246 in 660bc29
| for (IPartitionKeyComponent componentValue : partitionKey.getComponents()) { |
partitionKey.getComponents() return null in the "for" loop.
Is it ok to add a null check for partitionKey.getComponents before the for loop?
Reactions are currently unavailable
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.CosmosbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.cosmos:v4-itemIndicates this feature will be shipped as part of V4 release trainIndicates this feature will be shipped as part of V4 release train