Closed GoogleCodeExporter closed 8 years ago
I agree that the behavior is arguably correct, but not very user-friendly. The
truth
is that since it's difficult to get the name here we probably need to help the
user
in some way.
One option would be to print an error message if the string is NULL. This is a
little inconsistent with its behavior for say, integers, though.
Of course it should probably treat NULL as an empty string...
Likewise, NULL submessages should probably be serialized as 0-length data.
This probably needs to affect the get_packed_size(), pack() and pack_to_buffer()
functions... so 2 field-types (strings + messages) times 3 functions.
Alternately, we could have an optional way to print a warning in this case.
e.g. a
global boolean.
um, patches welcome?
Original comment by lahike...@gmail.com
on 28 Jan 2009 at 12:18
i committed the fix described to subversion.
Original comment by lahike...@gmail.com
on 29 Jan 2009 at 2:29
Original comment by lahike...@gmail.com
on 29 Jan 2009 at 2:30
Original issue reported on code.google.com by
pfeff...@gmail.com
on 26 Jan 2009 at 7:13