NPE is thrown by CacheImpl#getSecondLevelCacheRegion

Description

This does not affect master branch.

A NPE is thrown by CacheImpl#getSecondLevelCacheRegion because there are no null checks for CacheImpl#queryCaches, #queryCache, or #updateTimestampsCache.

This is a regression introduced by HHH-10418.

Environment

None

Activity

Show:
Gail Badner
April 25, 2018, 8:33 PM

CacheImpl#queryCaches, #queryCache, or #updateTimestampsCache are non-null only when the query cache is enabled.

I will fix this by checking if the query cache is enabled before attempting to access these fields.

Gail Badner
May 8, 2018, 12:29 AM

Fixed in 5.1 branch.

Assignee

Gail Badner

Reporter

Gail Badner

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.1.10

Components

Affects versions

Priority

Major
Configure