Fix some potential NPEs when session is null#1784
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1784 +/- ##
=============================================
- Coverage 54.39% 54.32% -0.07%
- Complexity 5516 5521 +5
=============================================
Files 562 562
Lines 25543 25590 +47
Branches 3328 3338 +10
=============================================
+ Hits 13893 13903 +10
- Misses 10391 10424 +33
- Partials 1259 1263 +4
|
Use SESSION_LOCK on synchronized blocks for session
RHenigan
left a comment
There was a problem hiding this comment.
These changes look good, I think the only thing we need to add is we should wrap the initialization of session in a synchronized block as well. Can you also add a new comment or update the existing comment to better capture what changes this PR makes?
Sounds good, I'll make that change, and yeah I'll add a new comment to better reflect the current changes |
|
Fixes #1781 This PR is ready for review. RiskThis PR makes no API changes. Testing Plan
SummaryThis PR ensures all access to CLA
|
Fixes #1781
This PR is ready for review.
Risk
This PR makes no API changes.
Testing Plan
Summary
This PR fixes some potential NPEs that could happen if functions from
sessionare called when the object is null.CLA