catch null pointer in map fragment