Commits

ltor...@81dbac14-341a-0410-aa85-cbcd92e6f43e  committed 1ae34e2

Issue number: CACHE-173 NullPointerException while flushing inexistant group
Obtained from: Tom Quellenberg
Submitted by: Lars Torunski

  • Participants
  • Parent commits fb372a1

Comments (0)

Files changed (1)

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

      * code if performance is too adversely impacted.
      **/
     protected synchronized final Set getGroupForReading(String groupName) {
-    	Set group = (Set) getGroupsForReading().get(groupName);           
+    	Set group = (Set) getGroupsForReading().get(groupName);
+        if (group == null) return null;
         return new HashSet(group);
     }