Commits

la...@81dbac14-341a-0410-aa85-cbcd92e6f43e  committed e7ed698

CACHE-260 NullPointerException in AbstractConcurrentReadCache#addGroupMappings fixed

  • Participants
  • Parent commits 427c4ad

Comments (0)

Files changed (1)

File src/java/com/opensymphony/oscache/base/algorithm/AbstractConcurrentReadCache.java

      * the memory groups (important for overflow-to-disk)
      */
     private void addGroupMappings(String key, Set newGroups, boolean persist, boolean memory) {
+        if (newGroups == null) {
+            return;
+        }
+        
         // Add this CacheEntry to the groups that it is now a member of
         for (Iterator it = newGroups.iterator(); it.hasNext();) {
             String groupName = (String) it.next();