npe in querybuilder