Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #4383 - avoid NPE from MultiPart Cleanup
Always assign _parts when constructed so it is never null. Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
- Loading branch information
1 parent
d7cf372
commit 269e885
Showing
1 changed file
with
3 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I might be 100% wrong, but it might be a good idea to declare all these variables as
volatile
(orfinal
which wouldn't needvolatile
), if the variables might get set in one thread and read in another thread.