Don't dereference a NULL visual pointer.