fix broken unit tests

This commit is contained in:
fjy 2014-04-07 10:56:38 -07:00
parent f5dc75ef82
commit 93349b5d07
1 changed files with 6 additions and 0 deletions

View File

@ -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;