fix: Repair convert null Integer to int NPE.Changed int tmpCapacity to Integer.

pull/1113/head
LiXuemin 3 years ago
parent cac49eedc5
commit c91b42c936

@ -227,7 +227,7 @@ public enum BlockingQueueTypeEnum {
.map(each -> each.generateBlockingQueue()) .map(each -> each.generateBlockingQueue())
.findFirst() .findFirst()
.orElseGet(() -> { .orElseGet(() -> {
int temCapacity = capacity; Integer temCapacity = capacity;
if (capacity == null || capacity <= 0) { if (capacity == null || capacity <= 0) {
temCapacity = DEFAULT_CAPACITY; temCapacity = DEFAULT_CAPACITY;
} }

Loading…
Cancel
Save