lidavidm commented on code in PR #37723:
URL: https://github.com/apache/arrow/pull/37723#discussion_r1434267145


##########
java/memory/memory-core/src/main/java/org/apache/arrow/memory/Accountant.java:
##########
@@ -72,13 +73,13 @@ public Accountant(Accountant parent, String name, long 
reservation, long maxAllo
     this.reservation = reservation;
     this.allocationLimit.set(maxAllocation);
 
-    if (reservation != 0) {
+    if (reservation != 0 && parent != null) {

Review Comment:
   For later investigation, it might be good to see if we can have 
Preconditions annotated in a way that Checker Framework can understand them.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to