Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dcache-xroot: check that descriptor is not null before calling close
Motivation: ``` 05 Dec 2023 16:29:55 (dcache-cms199-01) [] An exception java.lang.NullPointerException at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at org.dcache.xrootd.pool.XrootdPoolRequestHandler.removeAllDescriptorsAtomically(XrootdPoolRequestHandler.java:948) at org.dcache.xrootd.pool.XrootdPoolRequestHandler.exceptionCaught(XrootdPoolRequestHandler.java:277) ``` as reported on Slack channel. Modification: Should check for `null` before closing descriptor. Result: The NPE does not swallow the actual exception from `exceptionCaught`. Target: master Request: 9.2 Request: 9.1 Request: 9.0 Patch: https://rb.dcache.org/r/14180/ Requires-notes: yes Acked-by: Lea
- Loading branch information