Skip to content

Commit

Permalink
null-safety
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreKoepke committed Feb 22, 2025
1 parent 84c0343 commit 2e6a00f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ public static class ConfigDto {
private Boolean closeWithInterrupt;

public static ConfigDto from(RollerShutterConfig config) {
if (config == null) {
return null;
}

return new ConfigDto()
.setCompassDirection(config.getCompassDirection())
.setCloseAt(config.getCloseAt())
Expand Down

0 comments on commit 2e6a00f

Please sign in to comment.