File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/main/java/io/securecodebox/persistence/defectdojo/model Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 77import com .fasterxml .jackson .annotation .JsonProperty ;
88import lombok .Data ;
99
10+ import java .util .ArrayList ;
1011import java .util .List ;
1112
1213/**
@@ -19,12 +20,16 @@ public final class PaginatedResult<T extends Model> {
1920 @ JsonProperty
2021 private int count ;
2122
23+ /**
24+ * TODO: What does this contain? I would expect a number for the next page.
25+ * FIXME: If this provides an empty string to prevent NPE, then UserProfileServiceTest fails.
26+ */
2227 @ JsonProperty
2328 private String next ;
2429
2530 @ JsonProperty
26- private String previous ;
31+ private String previous = "" ;
2732
2833 @ JsonProperty
29- private List <T > results ;
34+ private List <T > results = new ArrayList <>() ;
3035}
You can’t perform that action at this time.
0 commit comments