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

Uncaught exception in method 'exists' #14

Open
ntma opened this issue Jun 3, 2020 · 0 comments · May be fixed by #15
Open

Uncaught exception in method 'exists' #14

ntma opened this issue Jun 3, 2020 · 0 comments · May be fixed by #15

Comments

@ntma
Copy link

ntma commented Jun 3, 2020

Hello,

Using connection.exists(path, callback) creates an uncaught exception when the request cannot reach the webdav server. My case happens when my nextcloud server is down or shuts down during this request, which makes res to be null in the following line:

callback(e, res.statusCode <= 400);

There should be a sanity test to check if res is null before accessing the statusCode.

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

Successfully merging a pull request may close this issue.

1 participant