Skip to content

Commit 7679e74

Browse files
committed
Handle null TextureData during GuiDialog initialization.
1 parent a439bdb commit 7679e74

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/PetroglyphTools/PG.StarWarsGame.Engine/GuiDialog/GuiDialogGameManager_Initialization.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ protected override Task InitializeCoreAsync(CancellationToken token)
3636
GameManager = ToString(),
3737
Message = "Unable to parse GuiDialogs.xml"
3838
});
39-
return;
4039
}
4140

42-
InitializeTextures(guiDialogs.TextureData);
41+
InitializeTextures(guiDialogs?.TextureData ?? new GuiDialogsXmlTextureData([], default));
4342
GuiDialogsXml = guiDialogs;
4443
}, token);
4544
}

0 commit comments

Comments
 (0)