-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 when exporting the database to an .sql file #778
Conversation
avoids NPE when exporting sql to file
Thanks for the contribution. Makes sense! Next time, please create a branch for your PR. I think that there may be some problems merging from your master branch so I let someone more knowledgeable do it. |
Could you add a CHANGELOG entry, please? For us, it is not soo much an issue if this is on the master branch. So when a CHANGELOG entry is added, we can merge this in. But maybe we should refactor the code to avoid these if statements whether we have a database connection or a file handle. |
I added the Fix to the CHANGELOG. |
Thanks @jensdoecke. |
In my opinion is the code more readable. I prefer something like this: Instead of the assumption: |
Ok thanks for this clarification and your pullrequest. In my opinion, this can be merged in. 👍 |
Thanks for the PR 👍 |
NPE when exporting the database to an .sql file
Couldn't resolve the root cause, because of a mixup between Connection and Filehandling (disregards SoC)