Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
ChriCC
5 years agoNew member | Level 2
Java desktop DbxWebAuth with withRedirectUri NPE
Hi everyone, as I wrote in the object, I get an NPE on the line:
HttpSession session = request.getSession(true);
Hi everyone, as I wrote in the object, I get an NPE on the line:
I'm using this...
Greg-DB
Dropbox Community Moderator
5 years ago[ Cross-linking for reference: https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-desktop-DbxWebAuth-with-withRedirectUri-NPE/td-p/411576 ]
This DbxWebAuth flow is meant for use with web apps, via whatever web framework you might be using. The request and response objects in this basic sample initially aren't set, and instead are just null as a placeholder. Without setting them, the NPE is expected.
We do have a working example with these set here:
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!