From 1570bcd03b789b15455a3d4ce06ecfbee73f4833 Mon Sep 17 00:00:00 2001 From: Josh Kabo Date: Fri, 8 Apr 2022 13:02:17 -0700 Subject: catch null profile_def causing crash on startup --- modules/openxr/editor/openxr_interaction_profile_editor.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/openxr') diff --git a/modules/openxr/editor/openxr_interaction_profile_editor.cpp b/modules/openxr/editor/openxr_interaction_profile_editor.cpp index 669cc694f2..24ac5494dd 100644 --- a/modules/openxr/editor/openxr_interaction_profile_editor.cpp +++ b/modules/openxr/editor/openxr_interaction_profile_editor.cpp @@ -209,6 +209,8 @@ void OpenXRInteractionProfileEditor::_add_io_path(VBoxContainer *p_container, co } void OpenXRInteractionProfileEditor::_update_interaction_profile() { + ERR_FAIL_NULL(profile_def); + // out with the old... while (main_hb->get_child_count() > 0) { memdelete(main_hb->get_child(0)); -- cgit v1.2.3