You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 14, 2025. It is now read-only.
Description:
When I try to unregister multiple applications using group actions, it throws NPE occasionally. I looked into the stack trace and found the code which was throwing the error.
if (streamDeploymentPropertiesMap.containsKey(appName)) {
Map<String, String> appDeploymentProperties = streamDeploymentPropertiesMap.get(streamAppName);
if (appDeploymentProperties.containsKey(SkipperStream.SKIPPER_SPEC_VERSION)) {
Stringversion = appDeploymentProperties.get(SkipperStream.SKIPPER_SPEC_VERSION);
if (version != null && version.equals(appVersion)) {
returnstreamDefinition.getName();
}
}
}
NullPointerException is being thrown by AppRegistryController at line 342
line 342: if (appDeploymentProperties.containsKey(SkipperStream.SKIPPER_SPEC_VERSION))
I don't have deep understanding in this code but I think NullPointerException is being thrown because streamDeploymentPropertiesMap.containsKey(appName) is not checking appropriate key(appName). You can see that on the next line streamDeploymentPropertiesMap.get(streamAppName), streamDeploymentPropertiesMap is retrieving a value from different key(streamAppName). I wonder if this is a bug or something that should work properly.
Release versions:
The version is 2.10.0
Custom apps:
Not related to custom apps.
Steps to reproduce:
Use dataflow version 2.10.0.
Register multiple applications. Then unregister applications using group action.
Screenshots:
Additional context:
Add any other context about the problem here.