leaf-soba commented on code in PR #18684:
URL: https://github.com/apache/kafka/pull/18684#discussion_r1979375219


##########
server-common/src/main/java/org/apache/kafka/timeline/Snapshot.java:
##########
@@ -47,7 +47,9 @@ <T extends Delta> T getDelta(Revertable owner) {
     }
 
     void setDelta(Revertable owner, Delta delta) {
-        map.put(owner, delta);
+        if (map != null) {
+            map.put(owner, delta);
+        }

Review Comment:
   @mumrah, Thanks for the clarification! I've updated the code.Let me know if 
you have any other suggestions!



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to