Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(2.6) dcache-core (statistics): fix yet another potential NPE in tree…
… creation If the user runs the admin command create html <yyyy> or create html <yyyy> <mm> and those directories do not exist, an NPE is thrown when the list of subfiles is sorted, since the list ends up being a NULL array. It costs little to ensure the presence of those directories in each of the three methods, so dir.mkdirs() has been added there. Testing: Running commands in absence of the statistics directory tree now avoids the NPE and creates the necessary empty directories. Target: 2.6 Patch: http://rb.dcache.org/r/6341/ Require-book: no Require-notes: yes Acked-by: Tigran Committed: 0200256 RELEASE NOTES: Fixes potential Null Pointer Exception thrown when create html <yyyy> or create html <yyyy> <mm> is run and those directories do not yet exist.
- Loading branch information