Fix Exception when updating preview (#2533)

This commit is contained in:
Exp
2020-11-09 18:36:45 +01:00
committed by GitHub
parent af060b5366
commit c82199610d

View File

@@ -592,6 +592,9 @@ namespace Content.Client.UserInterface
private void UpdatePreview() private void UpdatePreview()
{ {
if (Profile is null)
return;
_previewDummy.GetComponent<HumanoidAppearanceComponent>().UpdateFromProfile(Profile); _previewDummy.GetComponent<HumanoidAppearanceComponent>().UpdateFromProfile(Profile);
LobbyCharacterPreviewPanel.GiveDummyJobClothes(_previewDummy, Profile); LobbyCharacterPreviewPanel.GiveDummyJobClothes(_previewDummy, Profile);
} }