We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e1770b commit 9656b2dCopy full SHA for 9656b2d
1 file changed
srv/src/main/java/customer/bookstore/AdminHandler.java
@@ -46,6 +46,6 @@ void genId(EventContext ctx) {
46
case DraftNewEventContext newCtx -> newCtx.getCqn().entries();
47
default -> List.of();
48
};
49
- entries.forEach(m -> m.put("ID", id + 4)); // Note: that is not safe! ok for this sample only.
+ entries.forEach(m -> m.put("ID", id != null ? id + 4 : 0 )); // Note: that is not safe! ok for this sample only.
50
}
51
0 commit comments