mirror of https://github.com/apache/druid.git
fix NPE
This commit is contained in:
parent
8e38a85788
commit
bcfeac2d8c
|
@ -20,6 +20,7 @@
|
|||
package com.metamx.druid.coordination;
|
||||
|
||||
import com.google.common.base.Function;
|
||||
import com.google.common.base.Predicate;
|
||||
import com.google.common.collect.Ordering;
|
||||
import com.metamx.common.ISE;
|
||||
import com.metamx.common.guava.FunctionalIterable;
|
||||
|
@ -257,6 +258,16 @@ public class ServerManager implements QuerySegmentWalker
|
|||
);
|
||||
}
|
||||
}
|
||||
)
|
||||
.filter(
|
||||
new Predicate<QueryRunner<T>>()
|
||||
{
|
||||
@Override
|
||||
public boolean apply(@Nullable QueryRunner<T> input)
|
||||
{
|
||||
return (input != null);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
return new FinalizeResultsQueryRunner<T>(toolChest.mergeResults(factory.mergeRunners(exec, adapters)), toolChest);
|
||||
|
|
Loading…
Reference in New Issue