-
Notifications
You must be signed in to change notification settings - Fork 9
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
Bug: NPE thrown when visitArrowFunction encounters empty body #180
Comments
This affects multiple recipe runs - OWASP Top 10, Java Security Best Practices, and Common Static Analysis, for example. |
Hi, @DovOps! Thank you for reporting this! We have released a new version OR-JS and CLI that depends on this. The new release has a couple of adjustments. Please re-ingest your projects to ensure you have the JS LSTs built with the most recent version of the js parser. Let me know if this issue reappears. Best, |
Thanks @OlegDokuka - I actually pulled down rewrite-javascript and was looking to recreate this issue with some tests, but could not reproduce it. (Seems that some unit tests have migrated from Java over to native JS based on the gradle configs I was peeking at). I re-ran things on the app tenant, which errored out with a slightly different NPE around visitFunctionType (instead of arrow function): Looks like this is running rewrite-spring 5.26.0 - and the LST was built with 3.27.8 within the last day.
|
Hi, @DovOps! Also, see that. Trying to reproduce them locally as well. Will keep you updated thanks, |
Hi, @DovOps! I appreciate your patience! Please check it from your side as well, and let me know if you encounter anything related to the original problem. Thanks, |
What version of OpenRewrite are you using?
This issue is occuring on the app.moderne.io tenant, when running on the FINOS organization. Several of the repos, when running 'Migrate to Spring Boot 3.3' recipe are erroring due to a JavaScriptVisitor with the same error
Results : https://app.moderne.io/results/DFdjDhiAr
How are you running OpenRewrite?
This is a simple recipe execution of the rewrite-spring
org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_3
recipe on the app tenant.What is the smallest, simplest way to reproduce the problem?
Will be looking to reproduce this locally so that the JavaScript file inputs of some of these projects, which look pretty harmless
What did you expect to see?
Expect to see the recipe execute, and worst case ignore some javascript files it finds.
What did you see instead?
What is the full stack trace of any errors you encountered?
Are you interested in contributing a fix to OpenRewrite?
I hope to look at how this might be fixed.
The text was updated successfully, but these errors were encountered: