fixed null pointer when queryText is empty