CRUISE: Add a safeguard to avoid a potential null pointer derefenrece