null pointer in building hgrid model