-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Describe the bug
org.springframework.integration.dsl.context.StandardIntegrationFlowContext
....
public void remove(String flowId) {
if (this.registry.containsKey(flowId)) {
// Multithreading window
IntegrationFlowRegistration flowRegistration = this.registry.remove(flowId); // -> possible to receive null
flowRegistration.stop(); // - > will throw NPE
...
}
}
Should be changed to
public void remove(String flowId) {
final IntegrationFlowRegistration flowRegistration = this.registry.remove(flowId);
if (flowRegistration != null) {
flowRegistration.stop();
....
}
}