From 360318e21d56318b430ab01a665b3785df3eab9f Mon Sep 17 00:00:00 2001 From: "gocardless-ci-robot[bot]" <123969075+gocardless-ci-robot[bot]@users.noreply.github.com> Date: Fri, 8 May 2026 10:42:42 +0000 Subject: [PATCH] Changes generated by 318f06a7ed1f51229ae904a85a4cd037397f1bdb This commit was automatically created from gocardless/client-library-templates@318f06a7ed1f51229ae904a85a4cd037397f1bdb by the `push-files` action. Workflow run: https://github.com/gocardless/client-library-templates/actions/runs/25551085964 --- src/main/java/com/gocardless/http/ListResponse.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/gocardless/http/ListResponse.java b/src/main/java/com/gocardless/http/ListResponse.java index 47b37b23..a88c32d1 100644 --- a/src/main/java/com/gocardless/http/ListResponse.java +++ b/src/main/java/com/gocardless/http/ListResponse.java @@ -31,6 +31,9 @@ public List getItems() { * last page. */ public String getAfter() { + if (meta == null || meta.getCursors() == null) { + return null; + } return meta.getCursors().getAfter(); } @@ -39,6 +42,9 @@ public String getAfter() { * first page. */ public String getBefore() { + if (meta == null || meta.getCursors() == null) { + return null; + } return meta.getCursors().getBefore(); }