THRIFT-939. java: optional binary fields throw NPE on default byte[] getters
authorBryan Duxbury <bryanduxbury@apache.org>
Thu, 30 Sep 2010 19:37:01 +0000 (19:37 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Thu, 30 Sep 2010 19:37:01 +0000 (19:37 +0000)
commit7f7795d0d2a025d4f75d4ae348bbc59600d9345f
treefa123ba18674dcede267e32ec96cd799ab92debc
parent0b483e11ef179c1480b3e61039f62cb72d82e9b3
THRIFT-939. java:  optional binary fields throw NPE on default byte[] getters

This patch deals with null ByteBuffers correctly.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/branches/0.5.x@1003215 13f79535-47bb-0310-9956-ffa450edef68
lib/java/src/org/apache/thrift/TBaseHelper.java
lib/java/test/org/apache/thrift/TestTBaseHelper.java