Open GoogleCodeExporter opened 8 years ago
Unsafe.getXXX is the one barfing that when the message is null.
Serializing a null is invalid, so the null-protection could either be in the IO
utils or your code.
Just like the generated schema (null protection not in the library, but in the
generated code), it's better you check null before you use any of the IO utils.
Original comment by david.yu...@gmail.com
on 29 May 2013 at 11:23
I have at this point wrapped your libraries to make sure they are safe.
I have to say it find odd that you would be fine building a library that would
allow an end user to crash their JVM. Also keep in mind that it crashes in a
way that does not leave a user with a stack trace to find out why their JVM has
crashed. A middle of the road developer would not be able to track this down.
Your are making a design decision that allows users to crash their JVM in a way
that leaves them totally in the dark as to why. Seems like a hard to defend
design decision to me.
Original comment by mgiac...@gltech.com
on 30 May 2013 at 2:59
I can probably add this line in all of the IO utils.
if(message == null) throw new NullPointerException();
Original comment by david.yu...@gmail.com
on 30 May 2013 at 3:16
Original issue reported on code.google.com by
mgiac...@gltech.com
on 6 May 2013 at 10:15