From ee6086fe8b47a85100d25f93e0a635ad143d4f24 Mon Sep 17 00:00:00 2001 From: Allan Clements Date: Sun, 20 Oct 2024 12:18:57 -0500 Subject: [PATCH] Handle null in GraphSONV2 g_serializer_2 --- gremlin-client/src/io/macros.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gremlin-client/src/io/macros.rs b/gremlin-client/src/io/macros.rs index 681ed61..5ab6b6a 100644 --- a/gremlin-client/src/io/macros.rs +++ b/gremlin-client/src/io/macros.rs @@ -28,7 +28,9 @@ macro_rules! g_serializer_2 { pub fn $name(val: &Value) -> GremlinResult { if let Value::String(ref s) = val { return Ok(s.clone().into()) - } + } else if let Value::Null = val { + return Ok(GValue::Null) + } if let Value::Array(_) = val { let _type = "g:List"; let _value = &val;