We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f2f8bf commit 5e66d65Copy full SHA for 5e66d65
src/main/java/com/example/wini/domain/log/dto/response/SimpleActionChange.java
@@ -2,6 +2,9 @@
2
3
public record SimpleActionChange(String text, Long monthlyChange) {
4
public static SimpleActionChange from(ActionChange actionChange) {
5
+ if (actionChange == null) {
6
+ return new SimpleActionChange(null, null);
7
+ }
8
return new SimpleActionChange(actionChange.action().getText(), actionChange.monthlyChange());
9
}
10
0 commit comments