Fix issue #5542 (#5543)
authorPaulo Pinheiro <paulovictor.pinheiro@gmail.com>
Mon, 30 Sep 2019 21:05:19 +0000 (23:05 +0200)
committerWouter van Oortmerssen <aardappel@gmail.com>
Mon, 30 Sep 2019 21:05:19 +0000 (14:05 -0700)
commitd4cae0a62344b37908b1c157fa1cac27270ea0d0
tree72f9444c6fc127dca6e4caec9d49338e1dd46d68
parentf1147f65bbedeee0cf3843bb06313cbe11fc6191
Fix issue #5542 (#5543)

Empty objects that inherit from Sized would try to access internal
ByteBuffer when Sized::size was called. So we add a single byte in
the empty buffer, so when size() is called it would return 0
java/com/google/flatbuffers/FlexBuffers.java
tests/JavaTest.java