Tolerate null UUID attribute values

This commit is contained in:
Jon Chambers authored and GitHub committed 2021-11-09 11:00:27 -05:00
1 parent 3398955c1a
commit bae0196bcf
2 files changed
+7 -1

No files matched your search

@@ -57,4 +57,10 @@ public class AttributeValuesTest {
AttributeValue av = AttributeValues.fromByteBuffer(byteBuffer.flip());
assertArrayEquals(new byte[]{0, 0, 0, 0, 0, 0, 0, 123}, AttributeValues.getByteArray(Map.of("foo", av), "foo", null));
}
@Test
void testNullUuid() {
final Map<String, AttributeValue> item = Map.of("key", AttributeValue.builder().nul(true).build());
assertNull(AttributeValues.getUUID(item, "key", null));
}
}