We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35dfbd0 commit d340b78Copy full SHA for d340b78
1 file changed
lib/sdk/server-ai/src/main/java/com/launchdarkly/sdk/server/ai/AIGraphTracker.java
@@ -72,7 +72,11 @@ public final class AIGraphTracker {
72
LDLogger logger) {
73
this.client = Objects.requireNonNull(client, "client");
74
this.runId = Objects.requireNonNull(runId, "runId");
75
- this.graphKey = Objects.requireNonNull(graphKey, "graphKey");
+ Objects.requireNonNull(graphKey, "graphKey");
76
+ if (graphKey.trim().isEmpty()) {
77
+ throw new IllegalArgumentException("graphKey must not be blank");
78
+ }
79
+ this.graphKey = graphKey;
80
this.variationKey = variationKey;
81
this.version = version;
82
this.context = Objects.requireNonNull(context, "context");
0 commit comments