fix NPE in DirectDruidClient

This commit is contained in:
Xavier Léauté 2013-11-20 17:15:26 -08:00
parent d0fe70a21f
commit 3134affac9
1 changed files with 3 additions and 1 deletions

View File

@ -292,7 +292,9 @@ public class DirectDruidClient<T> implements QueryRunner<T>
@Override @Override
public void close() throws IOException public void close() throws IOException
{ {
jp.close(); if(jp != null) {
jp.close();
}
} }
} }
} }