avoid null pointer dereference on h->h_value