This commit is contained in:
Redkale
2019-09-25 15:40:47 +08:00
parent 7db73c076c
commit 90e15dd253

View File

@@ -102,7 +102,7 @@ public class BsonWriter extends Writer {
super.recycle();
this.count = 0;
this.specify = null;
if (this.content.length > defaultSize) {
if (this.content != null && this.content.length > defaultSize) {
this.content = new byte[defaultSize];
}
return true;