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 { ...@@ -110,7 +110,8 @@ public final class SimpleCache implements Cache {
@Override @Override
public synchronized NavigableSet<CacheSpan> getCachedSpans(String key) { public synchronized NavigableSet<CacheSpan> getCachedSpans(String key) {
CachedContent cachedContent = index.get(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 @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