Flyway has the ability to deploy repeatable scripts (by default with the prefix "R__"), which are deployed when the contents of the file has changed.
https://flywaydb.org/getstarted/repeatable
When a repeatable script is deployed, the record inserted in the schema_version table is null. I'm guessing that the null pointer exception is being thrown when the code is trying to get the migration info from the schema_version table and the version is unexpectedly null.
Below is a screen shot from my CloudWatch logs, the exception is being thrown after the deployment has proceeded successfully.

Flyway has the ability to deploy repeatable scripts (by default with the prefix "R__"), which are deployed when the contents of the file has changed.
https://flywaydb.org/getstarted/repeatable
When a repeatable script is deployed, the record inserted in the schema_version table is null. I'm guessing that the null pointer exception is being thrown when the code is trying to get the migration info from the schema_version table and the version is unexpectedly null.
Below is a screen shot from my CloudWatch logs, the exception is being thrown after the deployment has proceeded successfully.