forked from sakaiproject/sakai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KNL-1408 Preferences not loaded when cache entry expires
The original code did this: //is the preference in the cache if (m_cache.containsKey(id)) { prefs = (BasePreferences) m_cache.get(id); } which fails when there's an entry in the cache that has passed its TTL (.containsKey() returns true but .get() returns NULL). Rework the code to deal with the null case, and to clarify the overall logic.
- Loading branch information
1 parent
eab44b6
commit 5ec4517
Showing
1 changed file
with
32 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters