[PATCH] util: Prevent a NULl pointer from being accessed