Skip to content

Commit

Permalink
Handle null in GraphSONV2 g_serializer_2
Browse files Browse the repository at this point in the history
  • Loading branch information
criminosis committed Oct 20, 2024
1 parent 5330d8f commit ee6086f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gremlin-client/src/io/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ macro_rules! g_serializer_2 {
pub fn $name(val: &Value) -> GremlinResult<GValue> {
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;
Expand Down

0 comments on commit ee6086f

Please sign in to comment.