New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Transform] Adding null check to fix potential NPE #96785
Conversation
...n/java/org/elasticsearch/xpack/transform/transforms/common/AbstractCompositeAggFunction.java
Show resolved
Hide resolved
Thanks for the contribution. See my comment, the listener has to be called. Would you also be willing to contribute a unit test? You can take this method as example: It would be nice if you could add a new method called |
Sure I will create test case with the reference. |
Pinging @elastic/ml-core (Team:ML) |
Thanks for the update, time to run all tests: @elasticmachine test this please |
after looking at the logs it seems I made a blunder, let me modify my changelog as per the required enum and style check |
I've added the required UT, please do review |
@elasticmachine test this please |
@AjeetNathawat the easiest way to fix the checkstyle issues is to run Before pushing the changes to your branch, please run |
I've done the formatting now and ran the precommit task its successful now, thanks for pointing it out |
...n/transform/src/test/java/org/elasticsearch/xpack/transform/transforms/pivot/PivotTests.java
Outdated
Show resolved
Hide resolved
...n/transform/src/test/java/org/elasticsearch/xpack/transform/transforms/pivot/PivotTests.java
Outdated
Show resolved
Hide resolved
...n/transform/src/test/java/org/elasticsearch/xpack/transform/transforms/pivot/PivotTests.java
Outdated
Show resolved
Hide resolved
...n/transform/src/test/java/org/elasticsearch/xpack/transform/transforms/pivot/PivotTests.java
Outdated
Show resolved
Hide resolved
Hello @przemekwitek Thanks for the suggestion, I've addressed your comment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
💔 Backport failed
You can use sqren/backport to manually backport by running |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
(cherry picked from commit c9e37ef)
if
CompositeAggregation
is null then it can cause NPE inextractResults
so adding null check to avoid it