NPE DbxRequestUtil.finishReponse doesn't account for null body
See original GitHub issuejava.lang.NullPointerException
at com.dropbox.core.util.IOUtil.closeInput(IOUtil.java:129)
at com.dropbox.core.DbxRequestUtil.finishResponse(DbxRequestUtil.java:482)
at com.dropbox.core.DbxRequestUtil$2.run(DbxRequestUtil.java:473)
at com.dropbox.core.DbxRequestUtil.runAndRetry(DbxRequestUtil.java:517)
at com.dropbox.core.DbxRequestUtil.doPostNoAuth(DbxRequestUtil.java:469)
at com.dropbox.core.DbxWebAuth.finish(DbxWebAuth.java:401)
at com.dropbox.core.DbxWebAuth.finishFromCode(DbxWebAuth.java:309)
finishReponse
has the line IOUtil.closeInput(response.getBody());
, but we had an instance where getBody()
returned null.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Check for null values in rules - IBM
Cause. Checking for null values and initializing them is a necessary step in the implementation of a ruleset, because input objects might be ......
Read more >How to avoid deferencing NPE on return value when throwing ...
I have a validator service ( that checks if the DTO I receive via API does not contain null values in Double and...
Read more >Tired of Null Pointer Exceptions? Consider Using Java SE 8's ...
A common (bad) practice is to return the null reference to indicate the absence of a sound card. Unfortunately, this means the call...
Read more >Null is your friend, not a mistake | by Roman Elizarov - Medium
NullPointerException is dreaded in Java. All sorts of workarounds exist to avoid nulls. Fear not. They are not needed with Kotlin.
Read more >Null Pointer Exception In Java - GeeksforGeeks
NullPointerException is thrown when program attempts to use an object ... we must verify that object is not null, before we request a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great, thanks!
@handstandsam What do you mean by example? I provided part of the stack trace that involves this sdk.