fix nullpointer if query not exists
Merge pull request #5 from core9/develop

fix nullpointer if query not exists