MyMainMenu may be nullptr, however what is generating the access violation is the name of the action or the axis.