Skip to content
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

Joda Recipe NullPointerException AddSafeCheckMarker #640

Open
christopherfischer opened this issue Dec 20, 2024 · 0 comments
Open

Joda Recipe NullPointerException AddSafeCheckMarker #640

christopherfischer opened this issue Dec 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@christopherfischer
Copy link

What version of OpenRewrite are you using?

I am using

  • Java 21
  • Maven CLI 3.9.6
  • rewrite-migrate-java-2.32.0-SNAPSHOT (1bcf355)

How are you running OpenRewrite?

I am using the Maven CLI , and my project is a multi module project.
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:2.32.0-SNAPSHOT -Drewrite.activeRecipes=org.openrewrite.java.migrate.joda.JodaTimeRecipe -Drewrite.exportDatatables=true

What is the full stack trace of any errors you encountered?

java.lang.NullPointerException: Cannot invoke ""org.openrewrite.java.tree.JavaType$Method.getParameterNames()"" because the return value of ""org.openrewrite.java.tree.MethodCall.getMethodType()"" is null
  org.openrewrite.java.migrate.joda.JodaTimeScanner$AddSafeCheckMarker.visitExpression(JodaTimeScanner.java:324)
  org.openrewrite.java.migrate.joda.JodaTimeScanner$AddSafeCheckMarker.visitExpression(JodaTimeScanner.java:306)
  org.openrewrite.java.JavaVisitor.visitIdentifier(JavaVisitor.java:685)
  org.openrewrite.java.JavaIsoVisitor.visitIdentifier(JavaIsoVisitor.java:179)
  org.openrewrite.java.JavaIsoVisitor.visitIdentifier(JavaIsoVisitor.java:30)
  org.openrewrite.java.tree.J$Identifier.acceptJava(J.java:2491)
  org.openrewrite.java.tree.J.accept(J.java:59)
  org.openrewrite.TreeVisitor.visit(TreeVisitor.java:250)
  org.openrewrite.TreeVisitor.visitAndCast(TreeVisitor.java:320)
  org.openrewrite.java.JavaVisitor.visitRightPadded(JavaVisitor.java:1367)
  org.openrewrite.java.JavaVisitor.lambda$visitContainer$35(JavaVisitor.java:1417)
  org.openrewrite.internal.ListUtils.map(ListUtils.java:243)
  org.openrewrite.internal.ListUtils.map(ListUtils.java:265)
  org.openrewrite.java.JavaVisitor.visitContainer(JavaVisitor.java:1417)
  org.openrewrite.java.JavaVisitor.visitMethodInvocation(JavaVisitor.java:914)
  org.openrewrite.java.JavaIsoVisitor.visitMethodInvocation(JavaIsoVisitor.java:229)

Are you interested in contributing a fix to OpenRewrite?

@christopherfischer christopherfischer added the bug Something isn't working label Dec 20, 2024
@christopherfischer christopherfischer changed the title Joda Receipe NullPointerException AddSafeCheckMarker Joda Recipe NullPointerException AddSafeCheckMarker Dec 20, 2024
@timtebeek timtebeek moved this to Backlog in OpenRewrite Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

1 participant