Fix jvpp coverity issues #2
[vpp.git] / vpp-api / java / jvpp-registry / io / fd / vpp / jvpp / future / AbstractFutureJVppInvoker.java
index ed8b8db..98e140e 100644 (file)
@@ -51,7 +51,7 @@ public abstract class AbstractFutureJVppInvoker implements FutureJVppInvoker {
         this.requests = Objects.requireNonNull(requestMap, "Null requestMap");
     }
 
-    protected final Map<Integer, CompletableFuture<? extends JVppReply<?>>> getRequests() {
+    protected synchronized final Map<Integer, CompletableFuture<? extends JVppReply<?>>> getRequests() {
         return this.requests;
     }