Issue Details (XML | Word | Printable)

Key: CACHE-191
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Lars Torunski
Reporter: Rob Nodz
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OSCache

flushing non existing group

Created: 28/Jul/05 04:45 AM   Updated: 11/Sep/05 06:33 AM
Component/s: None
Affects Version/s: 2.1.1
Fix Version/s: None

Environment: windows 2003 server
Issue Links:
Duplicate
 

Flags: Important


 Description  « Hide
When I flush gruop from cache(flushGroup(groupName)), and this group is not in cache, I get exception:
java.lang.NullPointerException
at java.util.HashSet.<init>(HashSet.java:99)
at com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache.getGroupForReading(AbstractConcurrentReadCache.java:954)
at com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache.getGroup(AbstractConcurrentReadCache.java:372)
at com.opensymphony.oscache.base.Cache.flushGroup(Cache.java:447)
at com.opensymphony.oscache.base.Cache.flushGroup(Cache.java:434)
..................................................

this is problem. You should check, if group exists and then flush it. But You don't check and exception. wrrr


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.