Commit b92e6b04 authored by yihua.huang's avatar yihua.huang

#400 修复FileCacheQueueScheduler自己设置DuplicateRemover会导致NPE的问题

parent dafd2b77
......@@ -179,6 +179,9 @@ public class FileCacheQueueScheduler extends DuplicateRemovedScheduler implement
@Override
protected void pushWhenNoDuplicate(Request request, Task task) {
if (!inited.get()) {
init(task);
}
queue.add(request);
fileUrlWriter.println(request.getUrl());
}
......
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 to comment