Commit 5c2c3c5c by eguven Committed by Oliver Woodman

Create a base class for DASH downloading related tests

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=158129802
parent edbc2046
......@@ -110,7 +110,8 @@ public final class SimpleCache implements Cache {
@Override
public synchronized NavigableSet<CacheSpan> getCachedSpans(String key) {
CachedContent cachedContent = index.get(key);
return cachedContent == null ? null : new TreeSet<CacheSpan>(cachedContent.getSpans());
return cachedContent == null || cachedContent.isEmpty() ? null
: new TreeSet<CacheSpan>(cachedContent.getSpans());
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment