mirror of https://github.com/apache/druid.git
fix broken unit tests
This commit is contained in:
parent
f5dc75ef82
commit
93349b5d07
|
@ -124,6 +124,9 @@ public abstract class BaseQuery<T> implements Query<T>
|
|||
@Override
|
||||
public int getContextPriority(int defaultValue)
|
||||
{
|
||||
if (context == null) {
|
||||
return defaultValue;
|
||||
}
|
||||
Object val = context.get("priority");
|
||||
if (val == null) {
|
||||
return defaultValue;
|
||||
|
@ -163,6 +166,9 @@ public abstract class BaseQuery<T> implements Query<T>
|
|||
|
||||
private boolean parseBoolean(String key, boolean defaultValue)
|
||||
{
|
||||
if (context == null) {
|
||||
return defaultValue;
|
||||
}
|
||||
Object val = context.get(key);
|
||||
if (val == null) {
|
||||
return defaultValue;
|
||||
|
|
Loading…
Reference in New Issue