[PATCH openEuler-1.0-LTS 2/2] gtp: fix a potential NULL pointer dereference