Pointer check.

Signed-off-by: twhello <dev@twhello.com>