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

dialectKey为空导致NullPointerException #656

Closed
Elin-Zhou opened this issue Apr 8, 2022 · 0 comments
Closed

dialectKey为空导致NullPointerException #656

Elin-Zhou opened this issue Apr 8, 2022 · 0 comments

Comments

@Elin-Zhou
Copy link

return autoDialectDelegate.extractDialect(dialectKey, ms, dataSource, properties);

当判断dialectKey == null时,执行autoDialectDelegate.extractDialect(dialectKey, ms, dataSource, properties); autoDialectDelegate的默认实现类是DataSourceNegotiationAutoDialect,会执DataSourceNegotiationAutoDialect.java:73代码,urlMap.containsKey(dialectKey),dialectKey为null,直接抛出NPE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant