Skip to content

Commit 2553e4c

Browse files
committed
fix test
1 parent b9406ca commit 2553e4c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/main/java/graphql/EngineRunningState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public void updateExecutionInput(ExecutionInput executionInput) {
172172

173173
private void changeOfState(EngineRunningObserver.RunningState runningState) {
174174
if (engineRunningObserver != null) {
175-
engineRunningObserver.runningStateChanged(Assert.assertNotNull(executionId), graphQLContext, runningState);
175+
engineRunningObserver.runningStateChanged(executionId, graphQLContext, runningState);
176176
}
177177
}
178178

src/main/java/graphql/execution/EngineRunningObserver.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import graphql.ExperimentalApi;
55
import graphql.GraphQLContext;
66
import org.jspecify.annotations.NullMarked;
7+
import org.jspecify.annotations.Nullable;
78

89
/**
910
* This class lets you observe the running state of the graphql-java engine. As it processes and dispatches graphql fields,
@@ -46,8 +47,9 @@ enum RunningState {
4647
/**
4748
* This will be called when the running state of the graphql-java engine changes.
4849
*
49-
* @param executionId the id of the current execution
50+
* @param executionId the id of the current execution. This could be null when the engine starts,
51+
* if there is no execution id provided in the execution input
5052
* @param graphQLContext the graphql context
5153
*/
52-
void runningStateChanged(ExecutionId executionId, GraphQLContext graphQLContext, RunningState runningState);
54+
void runningStateChanged(@Nullable ExecutionId executionId, GraphQLContext graphQLContext, RunningState runningState);
5355
}

0 commit comments

Comments
 (0)