summaryrefslogtreecommitdiff
path: root/modules/openxr/editor
diff options
context:
space:
mode:
authorJosh Kabo <joshkong1@gmail.com>2022-04-08 13:02:17 -0700
committerJosh Kabo <joshkong1@gmail.com>2022-04-11 08:55:23 -0700
commit1570bcd03b789b15455a3d4ce06ecfbee73f4833 (patch)
tree2752a4ed707502c6a4efbb6300166a94c242ead0 /modules/openxr/editor
parentdf51e5fab0bbc64d1dfb64b75eec76c648ae8a60 (diff)
catch null profile_def causing crash on startup
Diffstat (limited to 'modules/openxr/editor')
-rw-r--r--modules/openxr/editor/openxr_interaction_profile_editor.cpp2
1 files changed, 2 insertions, 0 deletions
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));