diff --git a/src/Buffer/Buffer.hpp b/src/Buffer/Buffer.hpp index 647b121ba..459af3335 100644 --- a/src/Buffer/Buffer.hpp +++ b/src/Buffer/Buffer.hpp @@ -1238,7 +1238,8 @@ template void Buffer::iterator_common::read(RData data) { - assert(data.size > 0); + if (data.size == 0) + return; /* * The same implementation as in ::set() method buf vice versa: * buffer and data sources are swapped.