[Bug 55684] Null pointer dereference in failure path