fix hoyoverse login crash

This commit is contained in:
DismissedLight
2023-09-26 23:23:02 +08:00
parent bafee4ba18
commit aac0e268b0
2 changed files with 1 additions and 2 deletions

View File

@@ -53,7 +53,6 @@
<Border cw:UIElementExtensions.ClipToBounds="True">
<Border VerticalAlignment="Top" cw:VisualExtensions.NormalizedCenterPoint="0.5">
<shci:CachedImage Source="{Binding Banner}" Stretch="UniformToFill"/>
<mxi:Interaction.Behaviors>
<shcb:AutoHeightBehavior TargetHeight="390" TargetWidth="1080"/>
</mxi:Interaction.Behaviors>

View File

@@ -42,7 +42,7 @@ internal sealed partial class LoginHoyoverseUserPage : Microsoft.UI.Xaml.Control
if (resp is not null)
{
return $"{resp.Data.AccountInfo.AccountId}";
return $"{resp.Data?.AccountInfo?.AccountId}";
}
return string.Empty;