File tree Expand file tree Collapse file tree
yoti-sdk-sandbox/src/main/java/com/yoti/api/client/sandbox/docs/request/check Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public SandboxCheckResult getResult() {
2828 static abstract class Builder <T extends Builder <T >> {
2929
3030 protected SandboxRecommendation recommendation ;
31- protected List <SandboxBreakdown > breakdown = new ArrayList <>() ;
31+ protected List <SandboxBreakdown > breakdown ;
3232 protected String reportTemplate ;
3333
3434 public T withRecommendation (SandboxRecommendation recommendation ) {
@@ -37,12 +37,14 @@ public T withRecommendation(SandboxRecommendation recommendation) {
3737 }
3838
3939 public T withBreakdown (SandboxBreakdown breakdown ) {
40+ if (this .breakdown == null ) {
41+ this .breakdown = new ArrayList <>();
42+ }
4043 this .breakdown .add (breakdown );
4144 return self ();
4245 }
4346
4447 public T withBreakdowns (List <SandboxBreakdown > breakdowns ) {
45- notNull (breakdowns , "breakdowns" );
4648 this .breakdown = breakdowns ;
4749 return self ();
4850 }
You can’t perform that action at this time.
0 commit comments