| The same inconsistency is found in 5.1 and 5.2, although ConcurrentStatistics#getSecondLevelCacheStatistics does not check if the second-level cache is disabled before attempting to resolve the region. In 5.1 and 5.2, a NPE is thrown by CacheImpl#getSecondLevelCacheRegion because there are no null checks for CacheImpl#queryCaches, #queryCache, or #updateTimestampsCache. I plan to fix both issues in 5.1 and 5.2. |