Potential backward comparability issues (NPE) since 1.20 version #9194
Unanswered
yingkun-bai
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Before 1.20.0, we could still get the test container run even we pass a null initScriptPaths in JdbcDatabaseContainer
I found it will break some legacy codes, if the path was null before. Could you confirm it's a bug or a breaking change?
The reason is here, we had a null checking before
However, this was lost in the newer versions:
protected void runInitScriptIfRequired() { initScriptPaths.forEach(path -> ScriptUtils.runInitScript(getDatabaseDelegate(), path)); }
Beta Was this translation helpful? Give feedback.
All reactions