Skip to content

Commit 1be0a1e

Browse files
committed
fix: guard against empty runId and configKey
1 parent 4ef3de2 commit 1be0a1e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/sdk/server-ai/src/main/java/com/launchdarkly/sdk/server/ai/internal/ResumptionTokens.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ private static Decoded parseJson(String json) {
150150
}
151151
}
152152

153-
if (runId == null) {
153+
if (runId == null || runId.isEmpty()) {
154154
throw new IllegalArgumentException("Resumption token missing required field 'runId'");
155155
}
156-
if (configKey == null) {
156+
if (configKey == null || configKey.isEmpty()) {
157157
throw new IllegalArgumentException("Resumption token missing required field 'configKey'");
158158
}
159159
if (version == null) {

0 commit comments

Comments
 (0)