Skip to content

Commit ee760aa

Browse files
committed
Fix. NPE on ActorRef
1 parent 4355e17 commit ee760aa

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/main/java/io/eigr/spawn/api/InvocationOpts.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@
1515
@NoArgsConstructor
1616
public class InvocationOpts {
1717

18-
private boolean async;
18+
@Builder.Default
19+
private boolean async = false;
1920

20-
private Optional<Long> delay;
21+
@Builder.Default
22+
private Optional<Long> delay = Optional.empty();
2123

22-
private Optional<LocalDateTime> scheduledTo;
24+
@Builder.Default
25+
private Optional<LocalDateTime> scheduledTo = Optional.empty();
2326

2427
public long getScheduleTimeInLong() {
2528
if (scheduledTo.isPresent()) {

0 commit comments

Comments
 (0)