From c82199610deb270c461cd3dff52c7558ccd97807 Mon Sep 17 00:00:00 2001 From: Exp Date: Mon, 9 Nov 2020 18:36:45 +0100 Subject: [PATCH] Fix Exception when updating preview (#2533) --- Content.Client/UserInterface/HumanoidProfileEditor.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Client/UserInterface/HumanoidProfileEditor.cs b/Content.Client/UserInterface/HumanoidProfileEditor.cs index b6aca525ae..b6e36d23b7 100644 --- a/Content.Client/UserInterface/HumanoidProfileEditor.cs +++ b/Content.Client/UserInterface/HumanoidProfileEditor.cs @@ -592,6 +592,9 @@ namespace Content.Client.UserInterface private void UpdatePreview() { + if (Profile is null) + return; + _previewDummy.GetComponent().UpdateFromProfile(Profile); LobbyCharacterPreviewPanel.GiveDummyJobClothes(_previewDummy, Profile); }