File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
yoti-sdk-sandbox/src/main/java/com/yoti/api/client/sandbox/docs/request/check Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public SandboxCheckResult getResult() {
28
28
static abstract class Builder <T extends Builder <T >> {
29
29
30
30
protected SandboxRecommendation recommendation ;
31
- protected List <SandboxBreakdown > breakdown = new ArrayList <>() ;
31
+ protected List <SandboxBreakdown > breakdown ;
32
32
protected String reportTemplate ;
33
33
34
34
public T withRecommendation (SandboxRecommendation recommendation ) {
@@ -37,12 +37,14 @@ public T withRecommendation(SandboxRecommendation recommendation) {
37
37
}
38
38
39
39
public T withBreakdown (SandboxBreakdown breakdown ) {
40
+ if (this .breakdown == null ) {
41
+ this .breakdown = new ArrayList <>();
42
+ }
40
43
this .breakdown .add (breakdown );
41
44
return self ();
42
45
}
43
46
44
47
public T withBreakdowns (List <SandboxBreakdown > breakdowns ) {
45
- notNull (breakdowns , "breakdowns" );
46
48
this .breakdown = breakdowns ;
47
49
return self ();
48
50
}
You can’t perform that action at this time.
0 commit comments