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

NPE in Driver.getJdbcIniFile() #58

Closed
leo-from-spb opened this issue Jun 13, 2022 · 3 comments
Closed

NPE in Driver.getJdbcIniFile() #58

leo-from-spb opened this issue Jun 13, 2022 · 3 comments

Comments

@leo-from-spb
Copy link

NullPointerException, the most probably in Driver.java:914
As I could see while debugging, the "Driver.class.getProtectionDomain().getCodeSource().getLocation()" is null, so calling the "getPath()" function from null causes NPE :(

String filePath = Driver.class.getProtectionDomain().getCodeSource().getLocation().getPath();

@leo-from-spb leo-from-spb changed the title NPE NPE in Driver. getJdbcIniFile() Jun 13, 2022
@leo-from-spb leo-from-spb changed the title NPE in Driver. getJdbcIniFile() NPE in Driver.getJdbcIniFile() Jun 13, 2022
@iggarish
Copy link
Contributor

Thanks for reporting issue. We will take a look.

@iggarish
Copy link
Contributor

We fix the issue as you mention. As such we are not able to repro this one. The fix with null check will be release in first week of July in next release 2.1.0.9

@iggarish
Copy link
Contributor

2.1.0.9 Released.

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

2 participants