mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Fix a bug in ListMarshaller
This commit is contained in:
@@ -84,6 +84,9 @@ public final class ListMarshaller<T>
|
||||
int size = in.readInt();
|
||||
if (using == null) {
|
||||
using = new ArrayList<>(size);
|
||||
for (int i = 0; i < size; i++) {
|
||||
using.add(null);
|
||||
}
|
||||
} else if (using.size() < size) {
|
||||
while (using.size() < size) {
|
||||
using.add(null);
|
||||
|
||||
Reference in New Issue
Block a user