fix potential NPE in MockManagedLedger
@@ -338,7 +338,7 @@ public class MockManagedLedger implements ManagedLedger {
@Override
public CompletableFuture<Position> asyncFindPosition(Predicate<Entry> predicate) {
- return null;
+ return CompletableFuture.completedFuture(null);
}
@Override
@@ -359,7 +359,7 @@ public class MockManagedLedger implements ManagedLedger {
@Override
public CompletableFuture<ManagedLedgerInternalStats> getManagedLedgerInternalStats(boolean includeLedgerMetadata) {
- return null;
+ return CompletableFuture.completedFuture(null);
}
@Override
