The issue was that getting the `bAnimContext` fails in the Action Editor if there is no action. This lead to the keylist being a nullptr and Blender crashing. The fix is to always create the keylist, and just keep it empty in case the anim context cannot be created. Also fixes: #143306 Pull Request: https://projects.blender.org/blender/blender/pulls/143524