Merge pull request #19 from Ottermandias/SmallFixes

Fix crash on new installs.
This commit is contained in:
Adam 2021-02-19 10:27:55 +11:00 committed by GitHub
commit edc616da36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -134,7 +134,7 @@ namespace Penumbra.UI
private void DrawAboutTab()
{
if( !_editMode && Meta.Description?.Length == 0 )
if( !_editMode && ( Meta.Description?.Length ?? 0 ) == 0 )
{
return;
}

View file

@ -49,7 +49,7 @@ namespace Penumbra.UI
public void ResetModNamesLower()
{
_modNamesLower = Mods.ModSettings.Select( I => I.Mod.Meta.Name.ToLowerInvariant() ).ToArray();
_modNamesLower = Mods?.ModSettings?.Select( I => I.Mod.Meta.Name.ToLowerInvariant() ).ToArray() ?? new string[]{};
}
private void DrawPriorityChangeButton( string iconString, bool up, int unavailableWhen )