-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 9.0.0, 9.1.0, 9.0.2, 9.2.1
-
Component/s: Deployments
-
None
-
4
-
Severity 3 - Minor
Issue Summary
NullPointerException is shown when user wants to see what environments compatible with give agent or elastic image configuration
This is reproducible on Data Center: yes
Steps to Reproduce
- Create deployment project without environments
- Go to any agent details as admin user
- Choose Executable deployment environments tab
Expected Results
See list of compatible environments or empty list
Actual Results
Popup with error message
2023-02-03 09:34:35,519 WARN [http-nio-6990-exec-1] [BambooRuntimeExceptionMapper] Unexpected error from REST call java.lang.NullPointerException: null at com.atlassian.bamboo.deployments.environments.persistence.EnvironmentDaoImpl.lambda$getPaginatedDeploymentsWithEnvironmentsOnlyIdsAndRequirementSets$13(EnvironmentDaoImpl.java:244) ~[atlassian-bamboo-deployments-9.3.0-SNAPSHOT.jar:?] at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) ~[?:?] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) ~[?:?] at com.atlassian.bamboo.deployments.environments.persistence.EnvironmentDaoImpl.getPaginatedDeploymentsWithEnvironmentsOnlyIdsAndRequirementSets(EnvironmentDaoImpl.java:247) ~[atlassian-bamboo-deployments-9.3.0-SNAPSHOT.jar:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available