summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-04-11 19:59:48 +0200
committerGitHub <noreply@github.com>2022-04-11 19:59:48 +0200
commit4afa610017257947b8ee375723af32aab762525a (patch)
tree81ed75c9e46380cc62b92f7bb06c29304f7ebf0c
parent2fd5f207833709151d8359864cb1dcb1e521d766 (diff)
parent1570bcd03b789b15455a3d4ce06ecfbee73f4833 (diff)
Merge pull request #60039 from HookJabs/catch-null-profile_def
-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));